react-native-gcm-android icon indicating copy to clipboard operation
react-native-gcm-android copied to clipboard

Activity started twice

Open paulbao opened this issue 9 years ago • 5 comments

Press Home button to minimise the app and send a push notification to the app. If you click the the notification, it will launch the app again. But you have to click back button twice to go back.

paulbao avatar Jan 28 '16 03:01 paulbao

I believe this issue is related to react-native-system-notification that is responsible for creating notifications. Please go there to open a issue. I have tried TestGcm app. If I click the home button and click the notification, it will open the app rather than re-launching it.

oney avatar Jan 28 '16 04:01 oney

@paulbao i have seen it happen when the app is fully closed when multiple notifications are received.

jawadrehman avatar Jan 28 '16 17:01 jawadrehman

@jawadrehman the issue that you mentioned should be related to this module. Do you have more than one apps that are using this module? Including TestGcm app.

oney avatar Jan 28 '16 18:01 oney

@oney looking back, I think its related to the changes I made in the pull request I submitted earlier. Without that change, only one notification was created if the app was fully closed.

jawadrehman avatar Jan 29 '16 00:01 jawadrehman

line 242 of GCModule.java . I had to change it to use a random number to display multiple notifications, which was far more important in my app

jawadrehman avatar Jan 29 '16 00:01 jawadrehman