Skip to content

Firebase initialisation problem  #2

Closed
@cemozturk

Description

@cemozturk

Hi,

In your papers, you said just put the GoogleService-Info.plist file at proper location and call for desired functions to initalize the Firebase connection and play with it.

When i tried

	Firebase.Messaging.FirebaseMessaging.TokenReceived += OnTokenReceived;
	Firebase.Messaging.FirebaseMessaging.MessageReceived += OnMessageReceived;

it says,

The project's Bundle ID is inconsistent with either the Bundle ID in 'GoogleService-Info.plist', or the Bundle ID in the options if you are using a customized options. To ensure that everything can be configured correctly, you may need to make the Bundle IDs consistent. To continue with this plist file, you may change your app's bundle identifier to '__FIRAPP_DEFAULT'. Or you can download a new configuration file that matches your bundle identifier from https://console.firebase.google.com/ and replace the current one.

I debugged the logs and saw that your initalizing process is not waiting for Firebase to fully init. ( reading google-plist file, connecting to FCM etc.. )

When i wait for 10 seconds and trigger Firebase.Messaging.FirebaseMessaging.TokenReceived, i can get the token.

Please give us a proper create/build/init function with proper result delegate.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions