Page 1 of 1

Multiple intents for one GCM message

Posted: Thu Jul 11, 2013 12:22 am
by Shuang Liu

Hi,

I noticed that when I get one GCM while running the app, it shows one alert (by adding 'alert(data.aps.alert)' in 'push notification' on my page), in the android logcat, we can see it triggered 'onMessage' by 'GCMIntentService'

However, there still got one notification item in Android's notification center. After click that item, it will resend two same messages to my page (show another two alters). In the logcat, we can see it triggered two 'onNewIntent' by 'PushNotifacatons'

The same situation, If the app in the background, when I got GCM in, it shows one item in Android notification center, once you click that, the app will be open with multiple alters (cause triggered several 'onNewIntent')

So, how can we fix this?


Multiple intents for one GCM message

Posted: Thu Jul 11, 2013 2:46 am
by Igor

Hello! Working on it.


Multiple intents for one GCM message

Posted: Thu Jul 11, 2013 12:31 pm
by Kateryna Grynko

Hi Shuang,

We can't reproduce the issue, please share your app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a and tell us its name.


Multiple intents for one GCM message

Posted: Thu Jul 11, 2013 12:46 pm
by Shuang Liu

Ok, shared under 'a href="mailto:liushuang.me@gmail.com" rel="nofollow"liushuang.me@gmail.com/a', login as user:'goodgym', psw:'goodgym'

By the way, I am working on this project right now, so should I stop coding and wait for your testing?


Multiple intents for one GCM message

Posted: Thu Jul 11, 2013 1:48 pm
by Kateryna Grynko

Hi Shuang, thank you. No, we don't edit user apps. You can work with it.


Multiple intents for one GCM message

Posted: Thu Jul 11, 2013 8:35 pm
by Maryna Brodina

Hi, reproduced the problem on Android 4.0.4. Looks like a bug, but we need to test with some other devices. What's your Android version?


Multiple intents for one GCM message

Posted: Thu Jul 11, 2013 8:37 pm
by Shuang Liu

I got this problem on Android 4.04, 4.1.1, and 4.2.2.


Multiple intents for one GCM message

Posted: Thu Jul 11, 2013 8:38 pm
by Maryna Brodina

Thank you! I'll report this problem.