Unity Plugin Custom AppOptions bundle ID error

845 views
Skip to first unread message

leayleozo

unread,
Nov 10, 2016, 1:21:03 AM11/10/16
to Firebase Google Group
Hello,

This is regarding the new beta 1.0.0 Unity plugin.  Our app requires access to two different databases (in two separate projects).  We therefore supply custom AppOptions to the FirebaseApp Create method.  Prior to the release of the plugin, we had wrapped the native iOS SDK successfully, and were 
using this technique likewise successfully.  However, with the plugin, on each call to Create, we seem to get this error:

"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 'XXXXXXXXXX'"  (where "XXXXXXXXXX" is a numeric string that actually seems to match our GCM sender ID).  

There are only five properties in the AppOptions class, non of which seem to be the place to assign the bundle Id.  I have tried setting the app name as the bundle ID, but that of course failed as bundle IDs use characters that are invalid for the app name.  

Any help with this is appreciated!

FWIW, further on, we get the following exception when trying to access the database root reference for the app:

InvalidOperationException: The firebase realtime database has not been properly initialized.
  at Firebase.Database.Internal.Core.Context.EnsureLogger () [0x00000] in <filename unknown>:0 
  at Firebase.Database.Internal.Core.Context.InitServices () [0x00000] in <filename unknown>:0 
  at Firebase.Database.Internal.Core.Context.Freeze () [0x00000] in <filename unknown>:0 
  at Firebase.Database.Internal.Core.RepoManager.CreateLocalRepo (Firebase.Database.Internal.Core.Context ctx, Firebase.Database.Internal.Core.RepoInfo info, Firebase.Database.FirebaseDatabase firebaseDatabase) [0x00000] in <filename unknown>:0 
  at Firebase.Database.Internal.Core.RepoManager.CreateRepo (Firebase.Database.Internal.Core.Context ctx, Firebase.Database.Internal.Core.RepoInfo info, Firebase.Database.FirebaseDatabase firebaseDatabase) [0x00000] in <filename unknown>:0 
  at Firebase.Database.FirebaseDatabase.EnsureRepo () [0x00000] in <filename unknown>:0 
  at Firebase.Database.FirebaseDatabase.get_RootReference () [0x00000] in <filename unknown>:0 

Not sure if this is a result of the previous error, but it seems likely even though the previous error suggests that we "*may* need to make the Bundle IDs consistent".

Thank you!

Simon Oliver

unread,
Nov 10, 2016, 6:56:24 AM11/10/16
to Firebase Google Group
We're experiencing a similar error. We're just using Analytics right now, so not using FirebaseApp.Create (is this required? Didnt see it in the analytics samples). Info.plist is all set up and the bundles match correctly, but getting the message:

"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."

Stewart Miles

unread,
Nov 11, 2016, 9:01:15 PM11/11/16
to fireba...@googlegroups.com
Hey folks, thanks for you feedback.

We've reproduced the problem internally and have a fix queued up for this bug.  It turns out we had a bug that passed the developer specified app name (i.e the name argument of FirebaseApp.Create) to the app construction as the bundle ID.  Right now, unfortunately, there is no workaround as the app name can't contain periods so you can't just pass your bundle ID (e.g com.my.cool.game) as the name argument to FirebaseApp.Create().

As I mentioned we have the fix queued up and we'll try to get a bug fix out soon.

Cheers,
Stewart

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/c846d863-ac33-4695-819b-be095d614463%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

c...@tnbt.co

unread,
Nov 12, 2016, 2:51:07 PM11/12/16
to Firebase Google Group
We need to publish the app, when will you fix it ? 
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.

To post to this group, send email to fireba...@googlegroups.com.

Stewart Miles

unread,
Nov 14, 2016, 11:35:18 AM11/14/16
to Firebase Google Group
We don't have a timeline yet, we'll keep you posted on this thread.

leayleozo

unread,
Nov 14, 2016, 6:56:07 PM11/14/16
to Firebase Google Group
Thank you for clearing this up!  The Unity plugin looks great, and we look forward to using it when the fix is pushed!
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.

To post to this group, send email to fireba...@googlegroups.com.

TJ Cioffe

unread,
Nov 17, 2016, 12:54:40 PM11/17/16
to Firebase Google Group
experiencing same error in iOS with new Unity SDK, in for a bugfix too :)

Stewart Miles

unread,
Nov 18, 2016, 7:19:40 PM11/18/16
to Firebase Google Group
Hi everyone,

We've fixed this issue in the 1.0.1 release:

You can download the latest release from:

Cheers,
Stewart

leayleozo

unread,
Nov 21, 2016, 7:31:06 PM11/21/16
to Firebase Google Group
Fantastic -- thank you so much!
Reply all
Reply to author
Forward
0 new messages