Skip to content

Notification Error on IOS and Android

Current bug behaviour

Using the example app, the notifications fails to show up. We get an error instead: 25 | Sync Subscriptions | Failed to parse incoming notification: [json.exception.out_of_range.403] key ‘event’ not found Everything else that exclude any other source of bugs are well tested, including the connection with Firebase and local notification for both IOS android.

Expected behaviour

A notification shows up on Message received.

Steps to reproduce

Download the example app, and run it. Then, register for notification, and receive a message.

Environment information

 ~ flutter doctor -v
[✓] Flutter (Channel stable, 3.0.1, on macOS 12.3 21E230 darwin-arm, locale
    en-GB)
    • Flutter version 3.0.1 at /Users/mohamedkettouch/dev/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision fb57da5f94 (2 months ago), 2022-05-19 15:50:29 -0700
    • Engine revision caaafc5604
    • Dart version 2.17.1
    • DevTools version 2.12.2

[✓] Android toolchain - develop for Android devices (Android SDK version
    32.1.0-rc1)
    • Android SDK at /Users/mohamedkettouch/Library/Android/sdk
    • Platform android-32, build-tools 32.1.0-rc1
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.4.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7772763)

[✓] Connected device (4 available)
    • sdk gphone64 arm64 (mobile) • emulator-5554                        •
      android-arm64  • Android 12 (API 32) (emulator)
    • iPhone 11 (mobile)          • 8C920B2C-1985-4810-95A6-12F8AE8A7C78 • ios
      • com.apple.CoreSimulator.SimRuntime.iOS-15-5 (simulator)
    • macOS (desktop)             • macos                                •
      darwin-arm64   • macOS 12.3 21E230 darwin-arm
    • Chrome (web)                • chrome                               •
      web-javascript • Google Chrome 103.0.5060.134

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

More environment information

  • Plugin version: 0.1.0+1
  • Platform affected: all

Log information

No errors. The value gets lost inside the plugin.

More information

Edited by Mohamed Kettouch