[Discontinued] OneSignal Fix Extension

Thanks Sumit brooo :white_check_mark:
work for me :heart_eyes: :heart_eyes: :heart_eyes: :heart_eyes:

I checked the logs of that APK. It seems that you forget to put your App ID in your project. That’s why it’s failing to initialize the onesignal SDK.

01-14 12:26:47.495  6915  6915 E OneSignal: OneSignal AppId format is invalid.
01-14 12:26:47.495  6915  6915 E OneSignal: Example: 'b2f7f966-d8cc-11e4-bed1-df8f05be55ba'
01-14 12:26:47.495  6915  6915 E OneSignal:
01-14 12:26:47.495  6915  6915 E OneSignal: java.lang.IllegalArgumentException: Invalid UUID string:
01-14 12:26:47.495  6915  6915 E OneSignal:     at java.util.UUID.fromString(UUID.java:194)
01-14 12:26:47.495  6915  6915 E OneSignal:     at com.onesignal.OSUtils.initializationChecker(OSUtils.java:114)
01-14 12:26:47.495  6915  6915 E OneSignal:     at com.onesignal.OneSignal.init(OneSignal.java:736)
01-14 12:26:47.495  6915  6915 E OneSignal:     at com.onesignal.OneSignal.init(OneSignal.java:706)
01-14 12:26:47.495  6915  6915 E OneSignal:     at com.onesignal.OneSignal.access$000(OneSignal.java:86)
01-14 12:26:47.495  6915  6915 E OneSignal:     at com.onesignal.OneSignal$Builder.init(OneSignal.java:390)
01-14 12:26:47.495  6915  6915 E OneSignal:     at com.google.appinventor.components.runtime.PushNotifications.<init>(SourceFile:113)
01-14 12:26:47.495  6915  6915 E OneSignal:     at java.lang.reflect.Constructor.newInstance0(Native Method)
01-14 12:26:47.495  6915  6915 E OneSignal:     at java.lang.reflect.Constructor.newInstance(Constructor.java:343)
01-14 12:26:47.495  6915  6915 E OneSignal:     at gnu.expr.PrimProcedure.apply(PrimProcedure.java:272)
01-14 12:26:47.495  6915  6915 E OneSignal:     at gnu.mapping.CallContext.runUntilDone(CallContext.java:234)
01-14 12:26:47.495  6915  6915 E OneSignal:     at gnu.mapping.CallContext.runUntilValue(CallContext.java:298)
01-14 12:26:47.495  6915  6915 E OneSignal:     at gnu.kawa.reflect.Invoke.applyN(Invoke.java:209)
01-14 12:26:47.495  6915  6915 E OneSignal:     at gnu.mapping.ProcedureN.apply2(ProcedureN.java:39)
01-14 12:26:47.495  6915  6915 E OneSignal:     at io.kodular.pabloandroid2012.push.Screen1.$define(Screen1.yail:10248)
01-14 12:26:47.495  6915  6915 E OneSignal:     at com.google.appinventor.components.runtime.Form.onCreateFinish2(SourceFile:503)
01-14 12:26:47.495  6915  6915 E OneSignal:     at com.google.appinventor.components.runtime.Form.onCreateFinish(SourceFile:447)
01-14 12:26:47.495  6915  6915 E OneSignal:     at com.google.appinventor.components.runtime.Form.onCreate(SourceFile:377)
01-14 12:26:47.495  6915  6915 E OneSignal:     at android.app.Activity.performCreate(Activity.java:8142)
01-14 12:26:47.495  6915  6915 E OneSignal:     at android.app.Activity.performCreate(Activity.java:8114)
01-14 12:26:47.495  6915  6915 E OneSignal:     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1309)
01-14 12:26:47.495  6915  6915 E OneSignal:     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3508)
01-14 12:26:47.495  6915  6915 E OneSignal:     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3695)
01-14 12:26:47.495  6915  6915 E OneSignal:     at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
01-14 12:26:47.495  6915  6915 E OneSignal:     at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
01-14 12:26:47.495  6915  6915 E OneSignal:     at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
01-14 12:26:47.495  6915  6915 E OneSignal:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2131)
01-14 12:26:47.495  6915  6915 E OneSignal:     at android.os.Handler.dispatchMessage(Handler.java:106)
01-14 12:26:47.495  6915  6915 E OneSignal:     at android.os.Looper.loop(Looper.java:236)
01-14 12:26:47.495  6915  6915 E OneSignal:     at android.app.ActivityThread.main(ActivityThread.java:8019)
01-14 12:26:47.495  6915  6915 E OneSignal:     at java.lang.reflect.Method.invoke(Native Method)
01-14 12:26:47.495  6915  6915 E OneSignal:     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:600)
01-14 12:26:47.495  6915  6915 E OneSignal:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967)

Extension is compeletly empty and only contains Firebase libraries. So I think this is not due to extension, It is open source and you can check it on Github Repo. Most probably your app may have some harm things.

1 Like

I performed some tests.

  1. In the playstore it gives the error of the image I sent above

  2. Exporting the apk in Kodular, when trying to install the error “app not installed”

Apk: Google Drive: Sign-in

  1. And on the companion it worked

After I removed the Push notification and Onesignalfix extensions, the installing using the apk worked.

You are totally right. I am impressed with how dumb I am. The app works perfectly in Android 8.0 (Galaxy J5 Prime) and Android 6.0.1 (Galaxy J2 Prime)

1 Like

Anyone help me how can i set block by this extension. Please show me or send a screenshot. Please

No blocks, just drag extension to designer’s view

3 Likes

Ok thanks you. i will check now.

Woo hoo.
Now working this push notification.
Thank you @dora_paz specially thanks: @iamwsumit !

1 Like

APK is installing my side.

I dont understand, I tested it on two phones, one that had already installed a previous version, and another that would be the first installation.

but thanks for the help.

awesome work :100: :100:

1 Like

Project with only the fix and the push_notifications component.
test on 2 phones (android 9 & 10)
both subscription ok.

Android 9 = Receives in 1st and 2nd plane, after about 15 minutes it stops receiving in 2nd plane.

Android 10 = Only receives with open app.

Thoroughly check the configuration, the app has enabled receive notification and everything is fine but it does not receive me. :thinking:

Onesignal
Send: 2
Delivered: 2

Help @iamwsumit

thank you :100: :100: :100:

Thank you @iamwsumit Sumit - you are my hero

OneSignal now works as before!!

  • Notification to specific users
  • Works in background (closed APP)
  • turn off the Onesignal message in the chat window when I’m chatting with that person!
2 Likes

apparently not in all android or mobile versions, in the background it does not work for me after 15 min and in others only with the application open. :thinking: I already tried all possible configuration.

Thanku So much Its working fine

Not working for me. App is crashing on 1st screen after import of the extension.

I tested it in Android 9, 10 and 11 and it works to me fine. I did not faced any background working issue.
I do not have lower version devices, if someone has tested this fix in lower devices then please post here.

Maybe there is something installed in your devices that is killing the firebase notification services and it does not work after closing the app.

I already posted above to check the logs of APK but…

1 Like

Update

Problem solved. this extension is working great for me. i was imported an extra empty component in first screen and it was was minimized and it was causes the crashing problem…Thanks @iamwsumit.

1 Like