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

Firebase Message ios not work ionic #981

Open
undersession opened this issue Jan 2, 2019 · 1 comment
Open

Firebase Message ios not work ionic #981

undersession opened this issue Jan 2, 2019 · 1 comment

Comments

@undersession
Copy link

Describe the bug
Notification not fire in ios, works great in android

Console Logs
2019-01-02 10:00:27.535878+0100 Undersession[9520:2535947] 5.7.0 - [Firebase/Messaging][I-FCM002023] The object <FirebasePlugin: 0x28044fe30> does not respond to -messaging:didReceiveRegistrationToken:. Please implement -messaging:didReceiveRegistrationToken: to be provided with an FCM token.
2019-01-02 10:00:27.543356+0100 Undersession[9520:2535756] deviceToken1 = <01395e8a e0516482 730ad930 9f575777 b528532f 1779ce59 0af719df 9418f8e2>
2019-01-02 10:00:27.545334+0100 Undersession[9520:2535947] 5.7.0 - [Firebase/InstanceID][I-IID003014] Error while reading embedded mobileprovision Error Domain=NSCocoaErrorDomain Code=260 "The file “embedded.mobileprovision” couldn’t be opened because there is no such file." UserInfo={NSFilePath=/var/containers/Bundle/Application/B9AC11AA-54F2-47AA-9B6A-0A845D955B4C/Undersession.app/embedded.mobileprovision, NSUnderlyingError=0x282922550 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}

Plugin Version
cordova-plugin-firebase 2.0.5 "Google Firebase Plugin"

Additional context
My app delegate

#import "AppDelegate.h"
#import "MainViewController.h"

@implementation AppDelegate



- (BOOL)application:(UIApplication*)application didFinishLaunchingWithOptions:(NSDictionary*)launchOptions
{    
    self.viewController = [[MainViewController alloc] init];
    return [super application:application didFinishLaunchingWithOptions:launchOptions];
}

I use:
https://beta.ionicframework.com/docs/native/firebase

question: it's normal that this plugin not usa pod? my pod it's empty

@larsvliet
Copy link

I had the same problem and it seems to be caused by the fact that your project/workspace is build using the new build system instead of the legacy one.

See for example following comment how to change this setting:
apache/cordova-ios#412 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants