[Azure AD Mobile Plugin] [iOS] Azure AD & Firebase Mobile plugins incompatibility

Forge Component
(7)
Published on 2019-01-16 by Pedro Costa
7 votes
Published on 2019-01-16 by Pedro Costa

Hi,

On our app, using Firebase Mobile to provide push notifications, we noticed that we stopped receiving push notifications in iOS after including Azure AD plugin in the build.

After some analysis, it seems that the app fails to register on APN's because there's a missing entitlement (aps-environment).

The problem seems to be caused by a script that changes the iOS entitlements file when generating the app.

After applying a change in this script, the app successfully registers with APN's and the login with Azure remains working in the iOS app.

Please consider applying the following change in order to support having both plugins in the same app:

  • Remove/comment line 81 of the file configureEntitlementsIos.js


Cumps,

David

Solution

Hi David,


Thank you so much for sharing your knowledge. I will apply the changes and update the application


Regards,
Pedro

Solution

Hi David/Pedro, 


To do the above change we need to go to the ADAL plug-in > Data > Resources > azure.zip > under scripts> configureEntitlementsIos.js we need to the change then deply it. After that refresh your app plugin then the ios notifications will work.

Thanks

Harish

Hi Harish,


You will find inside the zip file that is in the resource folder in the plugin module:

azure.zip > azure > scripts > configureEntitlementslos.js


Thanks