The sample code works but never call the CALLBACK. But I receive this messages in console:

[INFO] :   GCMIntentService: Received message

[WARN] :   PushEventsTransmitter: No android.permission.BROADCAST_STICKY. Reverting to simple broadcast
[WARN] :   PushWoosh: NetworkUtils: PushWooshResult: {"status_code":200,"status_message":"OK","response":null}
[WARN] :   W/PushWoosh DeviceFeature2_5: Send MsgDelivered success
[WARN] :   W/PushWoosh DeviceFeature2_5: Try To sent PushStat
[ERROR] :  MessageActivity: Can't launch activity. Are you sure you have an activity with 'com.company.myapp.MESSAGE' action in your manifest?

But if I put a "SetTimeout" works, but the notification disapear from status bar when app is in background.

Some clue ?

asked 20 Apr '14, 13:44
fukhaos's gravatar image

fukhaos
14

edited 20 Apr '14, 13:53

I think it's a bug, I receive: [INFO] : GCMIntentService: Received message

but the callback never execute

I try with the last module in Github, but with the previous still don't working.

(20 Apr '14, 14:28) fukhaos fukhaos's gravatar image

Hello,

It seems that actually there is a gap in our guide, which we will certainly fix in the nearest future. Thank you for pointing it out!

Please try to add the following code in android -> manifest -> application tag

    <activity
        android:name=".APP-NAMEActivity"
        android:label="activity_label"
        android:theme="@style/Theme.Titanium"
        android:launchMode="singleTop"
        android:configChanges="keyboardHidden|orientation">
        <intent-filter>
            <action android:name="APP-ID.MESSAGE" />
            <category android:name="android.intent.category.DEFAULT" />
        </intent-filter>
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>

Please note that you should replace APP-NAME and APP-ID with the value of tag <name> and <id> respectively.

If it doesn't help, please contact our Support team via Contact us form on our website.

permanent link
answered 22 Apr '14, 03:54
Shmakov's gravatar image

Shmakov
1762

edited 22 Apr '14, 03:59

Dmitry%20%20Dyudeev's gravatar image

Dmitry Dyudeev
3.7k7

The problem with the last correction is that the notification disappear when received. My android phone, receive the notification, display it and remove it immediately!

Update: Of course this happen only when the app is running. If I set a link to open while the app is running the notification disappear immediately. Is there a method to keep it in the status bar?

permanent link
answered 28 Aug '14, 10:41
Univers3's gravatar image

Univers3
12

edited 29 Aug '14, 08:44

Hi, Did you solve your problem. Even i also want to keep alive the notification till i user doesn't click or remove from notification.

permanent link
answered 11 Sep '14, 02:55
pankaj's gravatar image

pankaj
111

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×447
×30

question asked: 20 Apr '14, 13:44

question was seen: 1,420 times

last updated: 11 Sep '14, 02:55