Android Question Add google play services on app

Schakalaka

Active Member
Licensed User
Longtime User
Hello. I want add google play services for my game app.
I have create on google console the rank list amd connect with firebase.
I think correctly.
Now how can i active login and poiny sharing from app?
I ve just create a button..
Thanks you
 

Schakalaka

Active Member
Licensed User
Longtime User
it return this error.
i can' tunderstand where..
maybe file manifest?

B4X:
Connect: first attempt
Connect: isGooglePlayServicesAvailable returned 0
State change: Disconnected -> Connecting
java.lang.IllegalStateException: A fatal developer error has occurred. Check the logs for further information.
    at com.google.android.gms.common.internal.BaseGmsClient$zza.deliverCallback(Unknown Source)
    at com.google.android.gms.common.internal.BaseGmsClient$zza.deliverCallback(Unknown Source)
    at com.google.android.gms.common.internal.BaseGmsClient$CallbackProxy.deliverCallback(Unknown Source)
    at com.google.android.gms.common.internal.BaseGmsClient$zzb.handleMessage(Unknown Source)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:146)
    at android.app.ActivityThread.main(ActivityThread.java:5756)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:515)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1291)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1107)
    at dalvik.system.NativeStart.main(Native Method)

my file manifesti is:
B4X:
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: https://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="9" android:targetSdkVersion="27"/>
<supports-screens android:largeScreens="true" 
    android:normalScreens="true" 
    android:smallScreens="true" 
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")

CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)


CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)


'************ Firebase Notifications ************
CreateResourceFromFile(Macro, FirebaseNotifications.FirebaseNotifications)
'************ Firebase Notifications (end)************

'************ Firebase Analytics ************
CreateResourceFromFile(Macro, FirebaseAnalytics.FirebaseAnalytics)
'************ Firebase Analytics (end) ************

'************ Firebase Ads ************
CreateResourceFromFile(Macro, FirebaseAdMob.FirebaseAds)
'************ Firebase Ads (end) ************

'************ Firebase Auth ************
CreateResourceFromFile(Macro, FirebaseAuth.FirebaseAuth)
'************ Firebase Auth (end) ************

AddApplicationText(
<meta-data
  android:name="com.google.android.geo.API_KEY"
  android:value="AIzaSyAr1y-Irh7iVFCmZUN3lInFF6UOWqRayU0"/>
)
SetApplicationAttribute(android:largeHeap,"true")

the code is all this.
just copy and paste.

https://www.b4x.com/android/forum/threads/google-play-game-services.45245/#content

but the example have old file manifest...
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…