Titanium UA for Android giving Uncaught Error: Take off must be called before shared()

I'm getting an error following the basic setup for Titanium with Android. The same code in iOS was tested and works. The initial error is "Urban Airship Autopilot: Failed to load meta-data, NullPointer: Attempt to invoke virtual method 'java.lang.String android.os.Bundle.getString(java.lang.String)' on a null object reference" which is later followed by "Uncaught Error: Take off must be called before shared()". I assume this is somehow related to a missing config option somewhere, but I can't figure out what I'm missing, as I have the development key and secret, as well as the GCM Sender in the tiapp.xml.

 

Has anyone run across something like this?

Didn't find what you were looking for?

New post

Comments

1 comment

  • OK, I figured it out. The meta-data error was clearly because it was looking for something specific, probably in the manifest, that wasn't there. I had inherited this project, so what I didn't take into consideration was it was using a custom AndroidManifest.xml. Once I converted the custom manifest into a section in the tiapp.xml, everything started playing nicely.

    Comment actions Permalink
    0

Please sign in to leave a comment.