Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(fcm): add missing clearAllNotifications, hasPermission and getAPNSToken #3331

Merged
merged 3 commits into from Feb 28, 2020
Merged

Commits on Feb 27, 2020

  1. fix(fcm): add missing clearAllNotifications

    Amine Mouafik committed Feb 27, 2020
    Configuration menu
    Copy the full SHA
    9545153 View commit details
    Browse the repository at this point in the history

Commits on Feb 28, 2020

  1. getAPNSToken method added

    New version of `cordova-plugin-fcm-with-dependecy-updated` released: v4.0.0
    
    _“The old FCMPlugin.getToken is focused on retrieving the FCM Token. For the IOS, APNS token can now be retrieved by the new method”_ (Show readme)[https://github.com/andrehtissot/cordova-plugin-fcm-with-dependecy-updated#version-400-12102019]
    Alexis Caffa authored and Amine Mouafik committed Feb 28, 2020
    Configuration menu
    Copy the full SHA
    c5cbf55 View commit details
    Browse the repository at this point in the history
  2. hasPermission added

    [Show readme.md](https://github.com/andrehtissot/cordova-plugin-fcm-with-dependecy-updated#version-320-16092019)
    
    #### Checking for permissions
    Useful for IOS. On android, it will always return `true`.
    
    ```javascript
    FCMPlugin.hasPermission(function(doesIt){
        // doesIt === true => yes, push was allowed
        // doesIt === false => nope, push will not be available
        // doesIt === null => still not answered, recommended checking again later
        if(doesIt) {
            haveFun();
        }
    });
    ```
    # Conflicts:
    #	src/@ionic-native/plugins/fcm/index.ts
    Alexis Caffa authored and Amine Mouafik committed Feb 28, 2020
    Configuration menu
    Copy the full SHA
    b141d8c View commit details
    Browse the repository at this point in the history