Hi all!
I have been trying to remove all the unnecessary things in the AndroidManifest.xml. When I remove the permission READ_PHONE_STATE, the game crashes on my phone (Samsung Galaxy Grand, GT-I9082, running Android 4.1.2) on startup after the main page loads. I tried the game (download from Google Play) on another phone (Samsung Galaxy Note 4, SM-N910G, running Android 6.0.1) and it does not crash. Below is the version of the AndroidManifest.xml with the READ_PHONE_STATE permission that does not crash on either phones. Help is much appreciated! Thank you!
Update: Tried the game (download from Google Play) on Galaxy S7 (SM-G930FD, Android 6.0.1) and it doesnāt crash too
Anyways, I have also released my game on Google Play (https://play.google.com/store/apps/details?id=com.jiax.blocks&hl=en), but with an earlier AndroidManifest.xml and without the READ_PHONE_STATE permission, which means it probably will crash on some phones (I am thinking the older Android versions). Nevertheless, support is very much appreciated too! Thank you too!
<?xml version="1.0" encoding="utf-8"?>
<!-- BEGIN_INCLUDE(manifest) -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.jiax.blocks"
android:versionCode="1"
android:versionName="1"
android:installLocation="auto">
<uses-feature android:required="true" android:glEsVersion="0x00020000" />
<uses-sdk android:minSdkVersion="9" android:targetSdkVersion="23" />
<application
android:icon="@drawable/icon"
android:label="jiax.Blocks" android:hasCode="true" android:debuggable="false">
<!-- For GCM (push) -->
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
<!-- For Facebook -->
<meta-data android:name="com.facebook.sdk.ApplicationName"
android:value="jiax.Blocks" />
<activity android:name="com.dynamo.android.DefoldActivity"
android:label="jiax.Blocks"
android:configChanges="orientation|screenSize|keyboardHidden"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
android:screenOrientation="portrait"
android:launchMode="singleTask">
<meta-data android:name="android.app.lib_name"
android:value="jiax.Blocks" />
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.dynamo.android.DispatcherActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar" />
<activity android:name="com.facebook.FacebookActivity"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation"
android:label="jiax.Blocks" />
<activity android:name="com.defold.iap.IapGooglePlayActivity"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
android:configChanges="keyboard|keyboardHidden|screenLayout|screenSize|orientation"
android:label="IAP">
</activity>
</application>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
</manifest>
<!-- END_INCLUDE(manifest) -->