- FirebaseMessaging.framework (from Firebase.zip/FirebaseMessaging/FirebaseMessaging.xcframework)
- FirebaseInstanceID.framework (from Firebase.zip/FirebaseMessaging/FirebaseInstanceID.xcframework)
- FirebaseInstallations.framework (from Firebase.zip/FirebaseAnalytics/FirebaseInstallations.xcframework)
Plus ones required for ios-core module:
- FirebaseCore.framework (from Firebase.zip/FirebaseAnalytics/FirebaseCore.xcframework)
- GoogleUtilities.framework (from Firebase.zip/FirebaseAnalytics/GoogleUtilities.xcframework)
- PromisesObjC.framework (from Firebase.zip/FirebaseAnalytics/PromisesObjC.xcframework)
<config>
...
<frameworkPaths>
<path>libs</path> <!-- path where FirebaseMessaging.framework (and other) are located -->
</frameworkPaths>
</config>
Add the following dependency to your build.gradle
:
dependencies {
... other dependencies ...
compile "io.github.dkimitsa.robovm:robopods-firebase-messaging-ios:$altpodsVersion"
}
This is required to be done in case of RoboVM. Following steps to be done as specified in the guide:
- add following lines to
info.plist
:
<key>FirebaseAppDelegateProxyEnabled</key>
<false />
- explicitly map your APNs token to the FCM registration token in app delegate:
@Override
public void didRegisterForRemoteNotifications(UIApplication application, NSData deviceToken) {
super.didRegisterForRemoteNotifications(application, deviceToken);
FIRMessaging.messaging().setAPNSToken(deviceToken);
}