[OneSignal Plugin] Notification with deep link opens a second instance on Android

[OneSignal Plugin] Notification with deep link opens a second instance on Android

  
Forge Component
(7)
Published on 4 Jul by OutSystems R&D
7 votes
Published on 4 Jul by OutSystems R&D

Hi,

We have set a notification with deep link in this format com.outsystemscloud.***.AppName://ModuleName/ScereenName?Parameter1=Value1 and it is opening the app and redirects to proper screen. But if the app is already launched and is in background clicking on the notification creates another instance of the app (so in the opened apps stack there are two instances of our app one with previous screen when the app was sent to background and another with proper deeplinked page). Clicking on the second instance of the app in the opened apps stack closes it instead of launching  but the first instance is still working until I navigate to another screen and then it looks like app looses all the local storage info. 


On older phone instead of opening the second instance the screen just goes black.

It doesn't happen on iOS. 


Thank you for any hint.

Hello, Mykola,

Could you please share the Android version where you have experienced this behavior?

Best regards,

Carlos Simões

Hello Carlos,

It's one plus 5
Android version 8
Oxigen OS

Hello again, Nick,

Sorry for the delay. I just tested on an Android 8.0 and couldn't reproduce the behavior you described.

Could you get in touch with us via support case so we can analyse it?

Best regards,

Carlos Simões