freshplanet / ANE-Facebook

Air Native Extension (iOS and Android) for the Facebook mobile SDK
Apache License 2.0
221 stars 123 forks source link

Application has stopped / java.lang.RuntimeException: Unable to resume activity. #197

Closed axldns closed 7 years ago

axldns commented 9 years ago

Hello, I'm aware that this issue is already arisen in few other threads. App stops right after calling openSessionWithReadPermissions For obvious reasons text bellow and attached log file have values replaced as follows: MyNumericAppId - my app id ('0234XXXXXXXXX') air.com.mydomain.myapp.debug - my app package (air.com.recxxxxx.xxxxx.debug)

  1. I've configured manifest and extension sections in application.xml according to readme and howto:
    <android>
        <manifestAdditions><![CDATA[
            <manifest android:installLocation="auto">
[...]
                 <uses-permission android:name="android.permission.INTERNET"/>
                 <application>
                    <activity android:name="com.facebook.LoginActivity"/>
                    <activity android:name="com.freshplanet.ane.AirFacebook.LoginActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar"></activity>
                    <activity android:name="com.freshplanet.ane.AirFacebook.ShareDialogActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar"></activity>
                    <activity android:name="com.freshplanet.ane.AirFacebook.ShareOGActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar"></activity>
                    <activity android:name="com.freshplanet.ane.AirFacebook.WebDialogActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar"></activity>      
               </application>
            </manifest> 
        ]]></manifestAdditions>
    </android>
[...]
<extensions>
        <extensionID>com.freshplanet.AirFacebook</extensionID>
</extensions>
  1. I've configured app facebook side (generated hashes based on certificate and password I've created earlier). fb
  2. I've included both ane and swc to the package
  3. I'm caling methods in order:
trace("ANE RUN", Facebook.isSupported);
Facebook.getInstance().init(MyNumericAppId,false);
Facebook.getInstance().logEnabled = true;
trace('Facebook.getInstance().isSessionOpen', Facebook.getInstance().isSessionOpen);
Facebook.getInstance().closeSessionAndClearTokenInformation();
Facebook.getInstance().openSessionWithReadPermissions(["public_profile", "user_friends"],aneSessionResult);

Method aneSessionResult is never executed. Application stops immediately after calling openSessionWithReadPermissions Delaying or triggering this method on user input event - gives the very same result.
I'm attaching full info-level, not filtered log file, captured from start of the app till the crash occurrence (replaced app id and package).

mparrett commented 9 years ago

We're experiencing the same, with similar Facebook settings.

st3veV commented 9 years ago

Same problem here. I debugged the whole thing for a while and it seems that there is a problem with resources (some of the resources required for the login dialog to open are null).