This repository has been archived by the owner on Sep 4, 2020. It is now read-only.
Force APNS | Added boolean ios init Option apnsForce to force apns | Updated docs as well #2736
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Default : False [Uses FCM if GoogleServiceInfo.plist is present and APNS if not]
If set to true (Boolean) or "true" (String) within ios options in init, it will force APNS to be used even if GoogleServiceInfo.plist is present in the project
Related Issue
#1770
#2138
Motivation and Context
Allow forcing of APNS and FCM as necesssary from JS instead of having to edit the GoogleServiceInfo.plist file everytime
How Has This Been Tested?
Added GoogleServiceInfo.plist in ios and made sure apnsForce : true and apnsForce : "true" was causing APNS to be used over FCM. Also tested by removing apnsForce and setting apnsForce : false while GoogleServiceInfo.plist was present and it defaulted to FCM.
Screenshots (if appropriate):
Types of changes
Checklist: