PushOptIn
will not work if notification permission is not granted.
So, after asking for permission, start a timer of 10 or more seconds and when time completes check if permission has been granted or not. OptIn for notifications only if true.
Please check. I am new to kodular/niotron i am doing this in niotron and don’t know much about blocks
Hello! I’m new to the community (just recreated my project here for a school project and improved with Kodular’s components and your extension).
Knowing that Firebase auth won’t work on this extension, I implemented a web component authentication instead with Firebase Auth REST API before adding the extension.
My app has 4 screens but I’ll only highlight the screen that is involved: Screen1 (Loading screen) and MainScreen (Primary UI)
I added the extension and the dependency on MainScreen. I exported it as an APK for a test, but it crashed. This happened during screen switching (Screen1 > MainScreen)
Digging down to adb logcat it said: Unable to start activity ComponentInfo{(package name)/io.kodular.rendamanjunjie.(apk name).MainScreen}: java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process: (package name). Make sure to call FirebaseApp.initializeApp(Context) first. Yeah, another runtime exception.
The only Firebase components on my app is the Firebase Database and Remote Config
Tried placing it on Screen1, and it worked fine during loading, but during switch, it crashed.
Tried placing both screens, still crashed
Even if I don’t initialize the component using the block “Initialize.appId()”, still crashes.
So I tested your .aia again and added another screen with Firebase database (I also added Firebase component on screen 1 as another test) then exported it as APK and that worked fine. No crashes.
I don’t know what could be the solution since I tried searching a lot and had no luck, and still in confusion, any solutions? Your response will be helpful to me. Thank you!
This might be the reason.
I have no solution right now.
But I’ll make sure to find a workaround after 6th April.
I see, I’ll test it again, will update later.
Upon testing, (this time I configured my app to exclude Firebase Remote Config and your .aia project file to have google-services.json with Firebase Database and Firebase Remote Config, exported as APK)
I successfully recreated the crash [Default FirebaseApp.initializeApp(Context)] to your .aia project file. Now, removing the Remote Config to your .aia file, the crash resolved but for my project, it still hasn’t been resolved, same runtime error though , only removing the extension resolves the problem in APK.
Oh well, I recently saw a post that a person also has that kind of runtime error but unfortunately, it didn’t get answered. Topic link: [New info]Firebase authentication , app crashes on impact - #11 by Mikolaj_Krajewski_Wario_S ← Seems like I have a similar case from this post.
I guess I’ll wait for the fix or any methods that could work on it.
Looking forward to it after April 6, I really wanted to add a push notification capability for my app.
Edit: Yep I fixed it and it was my unused Firebase Storage (I used your cloudinary extension instead because cloudinary was easier) I may have overlooked my components list, I thought it was another Firebase Database component, sorry about that but hey it works now!
Hello everyone,
My question is how to store a particular value after getting a particular message?
Thanks For the Great Extension @vknow360 …
I have a Query if You May Answer please…
I set up my application as You said … I am Getting Push Notification From Onesignal Api Dashboard,
But Not From the app …
Can You tell me why ?
Definitely I can’t tell without looking at your blocks.
I am too Sorry…
It was my Mistake, if you look at Tag i was not using proper tag } this one … thanks for the great Extension…
Also what tag means ? What if we set it to Blank ?
One more thing can you please Tell how can we set small image to our application Logo ???
My application is crashing after using this extension (app closing instant) … Am i doing something wrong ?
still crashing even after all blocks are removed (device oneplus Nord 5G)
Have you added all required aix to project?
Its Working Great in android 13 and 14 ,
but recently i installed my app in android 6.0.1 sdk version 23 after installing it my app is crashing , even not opening … please give me a solution for lower android version… thanks
ADB Logcat attached …
Can You Answer please?
Are you using any other firebase component?
No i am not using any other
Upload apk to drive and pm me.
Also send a video demonstrating steps to produce error.
There’s not any solution at the moment and neither I can assure you for next week. It’ll take time being a free extension.
Why This extension is the best
It will continue working but won’t receive future updates.
I’ll release a downgraded version (small size as well) soon which will be paid.