1

I have created Apex Trigger for inserting and updating Opportunity for android app. After login I am registering device for push notification and adding registration Id to MobilePushServiceDevice table in salesforce. If user uninstall the app we cannot unregister the device. If I don't unregister the device do I get multiple notification on creating the opportunity? Because sometime I am getting multiple notification while creating the opportunity .

1 Answer 1

0

If the same device is registered by 2 users and your Apex trigger sends push notification to both of them, then 2 push notifications will be sent to the device.

3
  • In my case same user register same device more than one time.
    – Rohith
    Aug 20, 2015 at 5:30
  • Is this iOS or Android device? APNS device token doesn't change often, so when the same user registers the same device token, new registration record is not created, instead the old record is updated. You can check which devices user currently has registered by following these steps: developer.salesforce.com/docs/atlas.en-us.pushImplGuide.meta/…
    – Aleksandra
    Aug 21, 2015 at 14:18
  • It's Android device so if we register same device multiple time we will get multiple access token.
    – Rohith
    Sep 2, 2015 at 5:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .