i have phonegap 3.0 android app, testflight sdk integrated.
the testflight website recognized app has sdk embedded (green check mark shows in sdk column, on build version line).
yet, testflight website doesn't show user sessions when app in use.
here how implemented it:
the documentation specified should use code
public class myapplication extends application { @override public void oncreate() { super.oncreate(); //initialize testflight app token. testflight.takeoff(this, your_app_token); ... } }
in phonegap class extends droidgap
(which not application). had instead
testflight.takeoff(this.getapplication(), test_flight_app_token);
also, says androidmanifest.xml should have
<application ... android:name="myapplication">
when add (pointing main class (the 1 extends droidgap) exception when app loads java.lang.classcastexception
casting main class android.app.application
it looks there should main class extends application
, can't seem find it.
you should setup separate java class in project extends application, , call takeoff in oncreate
public class myapplication extends application { @override public void oncreate() { testflight.takeoff(this, your_app_token); super.oncreate(); } }
you should not put name of activity (which extends droidgap) in application tag of manifest, cause classcastexception. instead, use name of class extending application, in example "myapplication".