[OneSignal Plugin] Outdated Android Support Libraries

Forge Component
(13)
Published on 7 May by OutSystems R&D
13 votes
Published on 7 May by OutSystems R&D

Hi,

I re-created the native installer for Android, but when I installed this on my phone on version 8.0, I can no longer receive any notification.

When I checked the OneSignal website, I get this error on the device where I installed the update.

Outdated Android Support Libraries

Pls advise.

Regards,

Romuel

Solution

Hi Romuel,

Are you using the latest version of the OneSignal Plugin available in the Forge?

To give you some more technical details, the targetSdkVersion and the Android Support library version of the app must match. MABS 3.3 and 4.0 compile the app with SDK 26 and the latest version of the plugin tries to set the support library version to 26.

It is possible that the support library version that is actually used is not 26, if there are other plugins that try to set the version to different values. This should not happen with OutSystems support plugins by themselves if they are all up-to-date.

References:

https://github.com/OneSignal/OneSignal-Android-SDK/issues/553

https://github.com/OneSignal/OneSignal-Android-SDK/issues/674

Best regards,

Nuno Azevedo

Solution


Nuno Azevedo wrote:

Hi Romuel,

Are you using the latest version of the OneSignal Plugin available in the Forge?

To give you some more technical details, the targetSdkVersion and the Android Support library version of the app must match. MABS 3.3 and 4.0 compile the app with SDK 26 and the latest version of the plugin tries to set the support library version to 26.

It is possible that the support library version that is actually used is not 26, if there are other plugins that try to set the version to different values. This should not happen with OutSystems support plugins by themselves if they are all up-to-date.

References:

https://github.com/OneSignal/OneSignal-Android-SDK/issues/553

https://github.com/OneSignal/OneSignal-Android-SDK/issues/674

Best regards,

Nuno Azevedo

Thanks Nuno for the advice. I have updated the plugin to the latest version and it is now working. Will just have to update the rest of the apps thar uses this plugin. But does that mean that the users will have to reinstall the apps again? I noticed that there is a need to re-tag and re-generate the apps.


Pls advise.


Regards

Rom


Hello Romuel,

Do the versions of the app in production have this issue? From what you explained it seemed like this issue was only in the newly generated builds. If this is the case you don't need to release anything unless the news builds add some functionality or fix some issue.

If the production builds have issues then you will need to release the new ones.

Best regards,
Nuno Azevedo

No issue yet in production. But since I upgraded the DEV version of OneSignal, during deployment to QAS, it required me to update also the other apps that used the old version.

Regards,

Romuel