Skip to content
This repository has been archived by the owner on Feb 7, 2019. It is now read-only.

v1.1.0 release

Compare
Choose a tag to compare
@lini lini released this 15 Feb 16:09
· 62 commits to master since this release

New Features

  • iOS: updated the plugin platform definitions so it automatically enables the push notifications settings in the Xcode project when building an app. This means that opening the Xcode project to enable the Push Notifications Capability or manually editing .plist / .entitlements files in the platforms directory should no longer be needed.
  • Android: the push notification callback can now be registered just like the iOS one from the registration settings object using notificationCallbackAndroid:
const pushSettings = {
        // Android settings
        senderID: "<ENTER_YOUR_PROJECT_NUMBER>", 
        notificationCallbackAndroid: (stringifiedData: String, fcmNotification: any) => {
            const notificationBody = fcmNotification && fcmNotification.getBody();
            this.updateMessage("Message received!\n" + notificationBody + "\n" + stringifiedData);
        },

        // iOS settings
        notificationCallbackIOS: (message: any) => {
            this.updateMessage("Message received!\n" + JSON.stringify(message));
        }
    };
  • Android: update Firebase Messaging reference version to 11.8.0

Fixes

  • Android: updated demo to remove push notification data from the intent when resuming app. This fixes issue where push notification can be handled more than once if app was in the background.