But where i can call it?Via phone lib:
Unfortunately your app has stoppedIt crashes with which errormessage???
that it isThe question was how to check the version at runtime.
I want to check before app started
** Service (firebasemessaging) Start **
Error occurred on line: 27 (FirebaseMessaging)
java.lang.NullPointerException: Attempt to invoke virtual method 'com.google.android.gms.tasks.Task com.google.firebase.iid.FirebaseInstanceId.zza(java.lang.String)' on a null object reference
at com.google.firebase.messaging.FirebaseMessaging.subscribeToTopic(Unknown Source)
at anywheresoftware.b4a.objects.FirebaseNotificationsService$FirebaseMessageWrapper.SubscribeToTopic(FirebaseNotificationsService.java:130)
at com.yemenet.aloo.firebasemessaging._subscribetotopics(firebasemessaging.java:210)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:735)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:357)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:260)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
at anywheresoftware.b4a.BA$2.run(BA.java:365)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5912)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1405)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1200)
You can check in starter serviceapplication with old android version crashes before reach activity create!
And again, if you just want to check version to say that the app is not compatible, just change the android:minSdkVersion in the manifest.I need to check version before crash error
Google play publish new roles not accepting older sdk, So I can't lower sdk version!And again, if you just want to check version to say that the app is not compatible, just change the android:minSdkVersion in the manifest.
This is what i need .. How to do check version compatibility in manifest?And if error happens before any user code execution(app init) you are not able to do anything useful. Use manifest...
Check my first answer. You have to set higher min sdk value. There is no other way.This is what i need .. How to do check version compatibility in manifest?
You cannot check. You can only forbid installation on former Android versionsThis is what i need .. How to do check version compatibility in manifest?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?