Skip to content

While run in android getting error #1

@vipinsainitech

Description

@vipinsainitech
 MissingPluginException(No implementation found for method startLiveActivity on channel com.example.flutter_application_la/liveActivitiesManager)
      #0      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:332:7)
      <asynchronous suspension>
      #1      MethodChannel.invokeListMethod (package:flutter/src/services/platform_channel.dart:520:35)
      <asynchronous suspension>
      #2      LiveActivitiesManager.startLiveActivity (package:flutter_application_la/live_actiivties_manager.dart:29:7)
      <asynchronous suspension>
  ____
  
  and if run in iOS, activity is adding but some error showing in logs:
[ERROR:flutter/shell/common/shell.cc(1038)] The 'com.example.flutter_application_la/liveActivitiesCallback' channel sent a message from native to Flutter on a non-platform thread. Platform channel messages must be sent on the platform thread. Failure to do so may result in data loss or crashes, and must be fixed in the plugin or application code creating that channel.
See https://docs.flutter.dev/platform-integration/platform-channels#channels-and-platform-threading for more information.
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(404, The operation couldn’t be completed. (OneSignal Error error 404.), null, null)
#0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:651:7)
#1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:334:18)
<asynchronous suspension>
#2      OneSignalLiveActivities.enterLiveActivity (package:onesignal_flutter/src/liveactivities.dart:13:14)
<asynchronous suspension>
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: PlatformException(404, The operation couldn’t be completed. (OneSignal Error error 404.), null, null)
#0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:651:7)
#1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:334:18)
<asynchronous suspension>
#2      OneSignalLiveActivities.enterLiveActivity (package:onesignal_flutter/src/liveactivities.dart:13:14)
<asynchronous suspension>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions