cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Asset Manager - Not all users are getting registered for push in Mobile Services

gonzalo_reyna
Participant
0 Kudos

Hi everyone,

We have configured push notification and is working fine. However, we have detected two things:


- Not every user that logs in SAM gets registered for push. Some get Push Configured = "true" and Android FCM Registration with the correspondent ID. However, other do not. What is the cause of this and how can be resolved?

- In the development/test subaccount, we see the "Send notifications" in the "User Registrations" tab. But in our production subaccount, even though push is configured, the button does not appear (see image). Whats the cause?

gonzalo_reyna
Participant
0 Kudos

I have found this one the Client Log uploaded to BTPms:

#2.0#2023-03-28 23:22:31.356+0200#2023-03-29 00:02:56.816+0200#ERROR#SAP.MDKClient###SAP.MDKClient#d6d00e76-7036-42fa-978a-659b5f67672c#809c7728-f5e9-44b8-89ea-238389d56bab#com.sap.samisucalidda#main#SAM_CONEM013############Error?running?action?propagating error Action.Type.PushNotificationRegister.2:?Error: invalid token : Error: invalid token\n at Function.toJSError (file:///data/data/com.sap.samisucalidda/files/app/vendor.js:121468:24)\n at Object.onRejected (file:///data/data/com.sap.samisucalidda/files/app/vendor.js:128724:94)\n at file:///data/data/com.sap.samisucalidda/files/app/vendor.js:128731:27\n at new Promise (<anonymous>)\n at PushNotification.registerForPushNotification (file:///data/data/com.sap.samisucalidda/files/app/vendor.js:128721:16)\n at PushNotificationRegisterAction.execute (file:///data/data/com.sap.samisucalidda/files/app/vendor.js:72629:84)\n at ActionRunner._runExecute (file:///data/data/com.sap.samisucalidda/files/app/vendor.js:73591:23)\n at file:///data/data/com.sap.samisucalidda/files/app/vendor.js:73635:

Why could it be?

muhammad_rafay
Advisor
Advisor
0 Kudos

An invalid token could mean several things. Usually, you should start with push configuration on mobile service. Are you using the correct configuration (sandbox vs production)? What's the difference between users who can register vs those who cannot? Are they all using device? Are they using production app or debug app?

gonzalo_reyna
Participant
0 Kudos

Hi Muhammad,

Thanks for your quick response as always.

Mobile push configuration is working (almost) fine. Some specific users and device combination get registered for push correctly and they receive push notifications corrently either in sandbox or production (image.png).

However, there are some user+device combinations that do not get registered, as shown in the following image, where we can see, in production, the user SAM_CONEM024 registered for push in one session/device but not in others. In the device with session 30.03.2023, it receives the notifications correctly. In the previous sessions, it did not.

Accepted Solutions (0)

Answers (0)