Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled Exception: MissingPluginException(No implementation found for method createBridgeInstance on channel SWK_BridgingCreator) #54

Open
devfernandorodrigues opened this issue Jan 29, 2025 · 6 comments

Comments

@devfernandorodrigues
Copy link

devfernandorodrigues commented Jan 29, 2025

After updating to version 1.3.9, I have this issue:

E/flutter (10865): #0      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:332:7)
E/flutter (10865): <asynchronous suspension>
E/flutter (10865): #1      BridgingCreator._invokeBridgeInstanceCreation (package:superwallkit_flutter/src/private/BridgingCreator.dart:31:5)
E/flutter (10865): <asynchronous suspension>
E/flutter (10865): #2      BridgingCreator._ensureBridgeCreated (package:superwallkit_flutter/src/private/BridgingCreator.dart:45:7)
E/flutter (10865): <asynchronous suspension>
E/flutter (10865): #3      BridgeAdditions.ensureBridgeCreated (package:superwallkit_flutter/src/private/BridgingCreator.dart:136:5)
E/flutter (10865): <asynchronous suspension>
E/flutter (10865): #4      MethodChannelBridging.invokeBridgeMethod (package:superwallkit_flutter/src/private/BridgingCreator.dart:85:11)
E/flutter (10865): <asynchronous suspension>
E/flutter (10865): #5      Superwall.setSubscriptionStatus (package:superwallkit_flutter/src/public/Superwall.dart:188:18)
E/flutter (10865): <asynchronous suspension>
E/flutter (10865): 
@yusuftor
Copy link
Contributor

Hi, is this on iOS? We just released an update to fix an issue like this on iOS, please update and let us know if that fixes it.

@devfernandorodrigues
Copy link
Author

Hi, is this on iOS? We just released an update to fix an issue like this on iOS, please update and let us know if that fixes it.

I'm having this issue on Android.

Also, I'm having a lot of issues with Superwall, it's crashing on a lot of devices.

Exception java.lang.IllegalStateException: BridgingCreator not initialized
  at com.superwall.superwallkit_flutter.BridgingCreator$Companion.getShared (BridgingCreator.kt:33)
  at com.superwall.superwallkit_flutter.SuperwallkitFlutterPluginKt.bridgeInstance (SuperwallkitFlutterPlugin.kt:77)
  at com.superwall.superwallkit_flutter.bridges.SuperwallBridge$onMethodCall$1$17$1$1.invokeSuspend (SuperwallBridge.kt:289)
  at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith (ContinuationImpl.kt:33)
  at kotlinx.coroutines.DispatchedTask.run (DispatchedTask.kt:104)
  at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run (LimitedDispatcher.kt:111)
  at kotlinx.coroutines.scheduling.TaskImpl.run (Tasks.kt:99)
  at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely (CoroutineScheduler.kt)
  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask (CoroutineScheduler.kt:811)
  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker (CoroutineScheduler.kt:715)
  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run (CoroutineScheduler.kt)
Image

@yusuftor
Copy link
Contributor

What version of our SDK are you using?

@devfernandorodrigues
Copy link
Author

What version of our SDK are you using?

In production is 1.3.7

@ianrumac
Copy link
Contributor

Hi @devfernandorodrigues - the issue in the screenshot on Android should be solved with version 1.3.9.

Regarding the original issue (one in the first message), could you post the full stacktrace? The actual crash message seems to be cutoff and it would be quite helpful in understanding the issue.

@devfernandorodrigues
Copy link
Author

Hi @devfernandorodrigues - the issue in the screenshot on Android should be solved with version 1.3.9.

Regarding the original issue (one in the first message), could you post the full stacktrace? The actual crash message seems to be cutoff and it would be quite helpful in understanding the issue.

Hi, this is what I have in the debug console.

I/flutter ( 3738): [LogLevel.error] Failed to configure Superwall
E/flutter ( 3738): [ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: MissingPluginException(No implementation found for method createBridgeInstance on channel SWK_BridgingCreator)
E/flutter ( 3738): #0      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:332:7)
E/flutter ( 3738): <asynchronous suspension>
E/flutter ( 3738): #1      BridgingCreator._invokeBridgeInstanceCreation (package:superwallkit_flutter/src/private/BridgingCreator.dart:31:5)
E/flutter ( 3738): <asynchronous suspension>
E/flutter ( 3738): #2      BridgingCreator._ensureBridgeCreated (package:superwallkit_flutter/src/private/BridgingCreator.dart:45:7)
E/flutter ( 3738): <asynchronous suspension>
E/flutter ( 3738): #3      BridgeAdditions.ensureBridgeCreated (package:superwallkit_flutter/src/private/BridgingCreator.dart:136:5)
E/flutter ( 3738): <asynchronous suspension>
E/flutter ( 3738): #4      MethodChannelBridging.invokeBridgeMethod (package:superwallkit_flutter/src/private/BridgingCreator.dart:85:11)
E/flutter ( 3738): <asynchronous suspension>
E/flutter ( 3738): #5      Superwall.setSubscriptionStatus (package:superwallkit_flutter/src/public/Superwall.dart:188:18)
E/flutter ( 3738): <asynchronous suspension>
E/flutter ( 3738): 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants