Git Product home page Git Product logo

Comments (8)

junweimah avatar junweimah commented on June 5, 2024 1

OK. I copied and tested your payload. It is working.
Ill make some changes accordingly

Thanks again

from ti.goosh.

netoramalho avatar netoramalho commented on June 5, 2024

You can send a longer message using the big_text parameter, and in the alert send it in a summarized way.

from ti.goosh.

junweimah avatar junweimah commented on June 5, 2024

For testing this is my payload :

             "alert": "alert",
             "title": "this is title",
             "icon" : "http://i.imgur.com/IGxUq3Z.jpg",
             "vibrate": true,
             "sound": true,
             "big_text" : "this is big text"
             "force_show_in_foreground" : true,
             "id": 2,

However I cant see the message "this is big text" from my notification. I am only seeing "alert" and "this is title", and the notification is not expandable

from ti.goosh.

netoramalho avatar netoramalho commented on June 5, 2024

I tested it here and it worked normally, it follows the information from my test, I hope something helps you figure out what might be happening.

Payload

{
    "data": {
        "id": "2",
        "vibrate": true,
        "title": "Netto Ramalho",
        "icon": "https://s-media-cache-ak0.pinimg.com/avatars/neto_ramalho_1_1403441759_140.jpg",
        "alert": "3 new messages",
        "big_text": "- Message 1\n- Message 2\n- Message 3"
    }
}

Prints
https://drive.google.com/open?id=0BylxnWR5r-V3RjFKdzFnSEd2R0E

Environment
sdk-version: 5.5.1.GA
module-version: 1.6.2
android-version: 6.0

from ti.goosh.

junweimah avatar junweimah commented on June 5, 2024

hmm. I am using exactly the same environment as yours, only that I am using a rooted device, not sure if that is the problem.

Ill try to figure it out. thanks for the help

from ti.goosh.

junweimah avatar junweimah commented on June 5, 2024

Hi I have another question

In your screenshot, there is a small icon at the bottom right of your notification icon, what is that? I am having a similar thing, but an empty circle for me. Any way to remove it?

from ti.goosh.

netoramalho avatar netoramalho commented on June 5, 2024

See section Set the icon for the tray in the readme file, explain how to change this icon, I do not know how to remove, but anyway I think it is not a good idea, this icon is displayed in other places where it is important the user to identify the symbol of yours application

from ti.goosh.

kopiro avatar kopiro commented on June 5, 2024

You can't remove that icon.
If you don't set the icon, no notification has been displayed; we put an empty circle as a default for this reason.

from ti.goosh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.