Creating an app that plays small soundbits occasionally and to make it work in the background I schedule them as notifications using the Application_Background event, since background Audio dies if the audio is not playing constantly.
This works fine on a first install, playing the soundfiles from the special folder with the motifications,
but when I reinstall(upgrade) the app, new notifications revert to the default notification sound.
To bring back the custom sounds I have to uninstall the application and then reinstall it.
I install/reinstall using the b4i-bridge and Tools - Build Server - Build Release App
Then when it first opens I have to Accept the Notification permissions.
(The last part is not repeated on reinstall, but the permissions are still on the phone)
I have tried putting the line
App.RegisterUserNotifications(True, True, True)
several more places in the app, but it makes no difference.
It makes no difference wether I reinstall with app in background mode,
or wether I kill the app by the "double home tap and swipe the app up" sequenze before reinstalling.
This behaviour is very impractical since I loose all the local stored data if uninstalling,
and there is a lot of reinstalls(upgrades) when developing,
and customers could get it if they later upgrade to a newer version.
All the installs/reinstalls has the same #Version number, but changing it makes no difference.
This works fine on a first install, playing the soundfiles from the special folder with the motifications,
but when I reinstall(upgrade) the app, new notifications revert to the default notification sound.
To bring back the custom sounds I have to uninstall the application and then reinstall it.
I install/reinstall using the b4i-bridge and Tools - Build Server - Build Release App
Then when it first opens I have to Accept the Notification permissions.
(The last part is not repeated on reinstall, but the permissions are still on the phone)
I have tried putting the line
App.RegisterUserNotifications(True, True, True)
several more places in the app, but it makes no difference.
It makes no difference wether I reinstall with app in background mode,
or wether I kill the app by the "double home tap and swipe the app up" sequenze before reinstalling.
This behaviour is very impractical since I loose all the local stored data if uninstalling,
and there is a lot of reinstalls(upgrades) when developing,
and customers could get it if they later upgrade to a newer version.
All the installs/reinstalls has the same #Version number, but changing it makes no difference.