Git Product home page Git Product logo

onesignal / onesignal-flutter-sdk Goto Github PK

View Code? Open in Web Editor NEW
608.0 50.0 205.0 1.03 MB

OneSignal is a free push notification service for mobile apps. This plugin makes it easy to integrate your flutter app with OneSignal

Home Page: https://www.onesignal.com

License: Other

Java 25.04% Ruby 1.51% Objective-C 32.49% Dart 39.63% Swift 1.32%
flutter notifications push-notifications email sms in-app-messaging android ios

onesignal-flutter-sdk's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

onesignal-flutter-sdk's Issues

Error when building for iOS after following SDK setup tutorial

Head's up: It's not working for android either. See #56
__

Description:
After following every step, to the letter of the Official SDK Setup, when running

flutter build ios --release

The job fails with

Building social.openbook.app for device (ios-release)...
Automatically signing iOS for device deployment using specified development team in Xcode project: GAR7B57RXU
Running pod install...                                       1.6s
Starting Xcode build...
Xcode build done.                                            1.3s
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **


Xcode's output:
↳
    === BUILD TARGET Pods-Runner OF PROJECT Pods WITH CONFIGURATION Release-production ===
    ld:
    '/Users/lifenautjoe/Documents/code/openbook/openbook-app/build/ios/Release-production-iphoneos/TOCropViewController/libTOCropViewController.a(TOActivityCroppedIm
    ageProvider.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or
    disable bitcode for this target. file
    '/Users/lifenautjoe/Documents/code/openbook/openbook-app/build/ios/Release-production-iphoneos/TOCropViewController/libTOCropViewController.a' for architecture
    armv7
    clang: error: unable to execute command: Segmentation fault: 11
    clang: error: linker command failed due to signal (use -v to see invocation)
    ld:
    '/Users/lifenautjoe/Documents/code/openbook/openbook-app/build/ios/Release-production-iphoneos/TOCropViewController/libTOCropViewController.a(TOActivityCroppedIm
    ageProvider.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or
    disable bitcode for this target. file
    '/Users/lifenautjoe/Documents/code/openbook/openbook-app/build/ios/Release-production-iphoneos/TOCropViewController/libTOCropViewController.a' for architecture
    arm64
    clang: error: unable to execute command: Segmentation fault: 11
    clang: error: linker command failed due to signal (use -v to see invocation)
    === BUILD TARGET Pods-Runner OF PROJECT Pods WITH CONFIGURATION Release-production ===
    error: the following command failed with exit code 254 but produced no further output
    Ld
    /Users/lifenautjoe/Library/Developer/Xcode/DerivedData/Runner-fyejgxaqxiysevckyfsvnqjhzfai/Build/Intermediates.noindex/Runner.build/Release-production-iphoneos/O
    neSignalNotificationServiceExtension.build/Objects-normal/arm64/OneSignalNotificationServiceExtension normal arm64

I really have no clue what this might be.

Environment

Missing Headers <OneSignal/OneSignal.h> (Cocoapods issue)

When using 1.0.2 of our Flutter SDK, some users that uses use_frameworks! in their podfiles (Swift projects) may see the following error:

Error output from Xcode build:
↳
    ** BUILD FAILED **

Xcode's output:
↳
    In file included from /Users/bradhesse/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.2/ios/Classes/OneSignalPlugin.m:28:
    /Users/bradhesse/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.2/ios/Classes/OneSignalPlugin.h:29:9: fatal error: 'OneSignal/OneSignal.h' file not found
    #import <OneSignal/OneSignal.h>
            ^~~~~~~~~~~~~~~~~~~~~~~
    1 error generated.

It appears to be an issue with how our Flutter SDK is unable to find headers for the native iOS SDK. I am working on this issue now.

Builds fail when using OneSignal and FlutterYoutube

Description:

After following the OneSignal setup guide (creating the Notification Service Extension) subsequent ios builds fail with the following error:

$ flutter build ios

Building org.jeffmikels.innovation.OneSignalNotificationServiceExtension for device (ios-release)...
Automatically signing iOS for device deployment using specified development team in Xcode project: R82H62YSB3
Starting Xcode build...                                          
Xcode build done.                                            1.1s
Failed to build iOS app
Error output from Xcode build:
↳
    ** BUILD FAILED **
    
Xcode's output:
↳
    === BUILD TARGET Pods-Runner OF PROJECT Pods WITH CONFIGURATION Release ===
    ld: '/Volumes/Jeff/Development/@Flutter/church_app_flutter/org.jeffmikels.innovation/build/ios/Release-iphoneos/XCDYouTubeKit/libXCDYouTubeKit.a(XCDYouTubeClient.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. file '/Volumes/Jeff/Development/@Flutter/church_app_flutter/org.jeffmikels.innovation/build/ios/Release-iphoneos/XCDYouTubeKit/libXCDYouTubeKit.a' for architecture armv7
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    ld: '/Volumes/Jeff/Development/@Flutter/church_app_flutter/org.jeffmikels.innovation/build/ios/Release-iphoneos/XCDYouTubeKit/libXCDYouTubeKit.a(XCDYouTubeClient.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. file '/Volumes/Jeff/Development/@Flutter/church_app_flutter/org.jeffmikels.innovation/build/ios/Release-iphoneos/XCDYouTubeKit/libXCDYouTubeKit.a' for architecture arm64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
Encountered error while building for device.

Environment

Steps to Reproduce Issue:

  1. create any flutter app.
  2. specify flutter_youtube and onesignal in the pubspec.yaml
  3. flutter build ios works
  4. Follow the setup guide for iOS to create Notification Service Extension.
  5. flutter build ios fails

release apk error :onesignal:verifyReleaseResources

Description:

I get the following error after I run the release build command flutter build apk --release -v

[ +899 ms] > Task :onesignal:verifyReleaseResources FAILED
[        ] 359 actionable tasks: 6 executed, 353 up-to-date
[        ]          *********************************************************
[        ] WARNING: This version of google_sign_in will break your Android build if it or its dependencies aren't compatible with AndroidX.
[        ]          See https://goo.gl/CP92wY for more information on the problem and how to fix it.
[        ]          This warning prints for all Android build failures. The real root cause of the error may be unrelated.
[        ]          *********************************************************
[ +199 ms] FAILURE: Build failed with an exception.
[   +1 ms] * What went wrong:
[        ] Execution failed for task ':onesignal:verifyReleaseResources'.
[        ] > java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
[        ]   /Users/tarekkma/***/build/onesignal/intermediates/res/merged/release/values/values.xml:283: error: resource
android:attr/fontVariationSettings not found.
[        ]   /Users/tarekkma/***/build/onesignal/intermediates/res/merged/release/values/values.xml:284: error: resource
android:attr/ttcIndex not found.
[        ]   error: failed linking references.
[        ] * Try:
[        ] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
[        ] * Get more help at https://help.gradle.org
[        ] BUILD FAILED in 24s

Environment

  1. OneSignal Flutter SDK:1.0.5
  2. How did you add the SDK to your project: Following the guide

Anything else:

pubspec.yaml

name: ***
description: A new Flutter application.

version: 1.0.0+1

environment:
  sdk: ">=2.0.0-dev.68.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter

  cupertino_icons: ^0.1.2
  google_sign_in: ^4.0.1
  firebase_auth: ^0.8.0+3
  firebase_core: ^0.3.0
  flutter_facebook_login:
    git:
      url: git://github.com/yudaprama/flutter_facebook_login.git
      ref: android-x

  shared_preferences: ^0.4.3
  scoped_model: ^1.0.1 
  share: ^0.5.3
  youtube_player: ^0.6.1
  http: ^0.12.0+1
  intl: ^0.15.7
  webview_flutter: ^0.3.0
  cached_network_image: ^0.5.1
  flutter_webview_plugin: ^0.3.0+2
  dots_indicator: ^0.0.3
  sticky_headers: ^0.1.7
  font_awesome_flutter: ^8.4.0
  url_launcher: ^5.0.1
  onesignal: ^1.0.5
  json_annotation: ^2.0.0
  uuid: ^1.0.3
  uni_links: ^0.1.4


dev_dependencies:
  flutter_test:
    sdk: flutter
  build_runner: ^1.0.0
  json_serializable: ^2.0.0


flutter:

  uses-material-design: true

  assets:
      - assets/

  fonts:
    - family: Cookie
      fonts:
        - asset: fonts/cookie.ttf
    - family: Merriweather
      fonts:
        - asset: fonts/Merriweather-Light.ttf
    - family: Icons
      fonts:
        - asset: assets/Icons.ttf

app/build.gradle

buildscript {
    repositories {
        maven { url 'https://plugins.gradle.org/m2/' } // Gradle Plugin Portal
    }
    dependencies {
        // OneSignal-Gradle-Plugin
        classpath 'gradle.plugin.com.onesignal:onesignal-gradle-plugin:[0.12.1, 0.99.99]'
    }
}

apply plugin: 'com.onesignal.androidsdk.onesignal-gradle-plugin'

def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
    localPropertiesFile.withReader('UTF-8') { reader ->
        localProperties.load(reader)
    }
}

def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
    throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}

def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
    flutterVersionCode = '1'
}

def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
    flutterVersionName = '1.0'
}

apply plugin: 'com.android.application'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

def keystorePropertiesFile = rootProject.file("key.properties")
def keystoreProperties = new Properties()
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))

android {
    compileSdkVersion 28

    lintOptions {
        disable 'InvalidPackage'
    }

    defaultConfig {
        // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
        applicationId "com.***.mobileapplication"
        minSdkVersion 16
        targetSdkVersion 27
        versionCode flutterVersionCode.toInteger()
        versionName flutterVersionName
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
        multiDexEnabled true
        multiDexKeepFile file('multidex-flutter.txt')
        /*manifestPlaceholders = [
            onesignal_app_id: '9b5016c5-a694-4213-9fe5-5b12e9185e4e',
            onesignal_google_project_number: 'REMOTE'
        ]*/
    }

    signingConfigs {
        release {
            keyAlias keystoreProperties['keyAlias']
            keyPassword keystoreProperties['keyPassword']
            storeFile file(keystoreProperties['storeFile'])
            storePassword keystoreProperties['storePassword']
        }
        debug {
            keyAlias keystoreProperties['keyAlias']
            keyPassword keystoreProperties['keyPassword']
            storeFile file(keystoreProperties['storeFile'])
            storePassword keystoreProperties['storePassword']
        }
    }

    buildTypes {
        release {
            signingConfig signingConfigs.release
        }
    }
    compileOptions {
        sourceCompatibility 1.8
        targetCompatibility 1.8
    }
}

flutter {
    source '../..'
}

dependencies {
    testImplementation 'junit:junit:4.12'
    androidTestImplementation "androidx.test:runner:1.1.1"
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
    implementation project(':cashfreeSDK')
    implementation "androidx.multidex:multidex:2.0.1"
    //implementation "com.onesignal:OneSignal:[3.9.1, 3.99.99]"
}

apply plugin: 'com.google.gms.google-services'

Unsupported value: null on OneSignalRestClient.java:208

Occurs when sending notification

    var imgUrlString = "https://zonaskripsi.com/img/algorithm-simulator.jpg";

    var notification = OSCreateNotification(
      playerIds: [playerId],
      content: "this is a test from OneSignal's Flutter SDK",
      heading: "Hi There",
      bigPicture: imgUrlString,
      androidSound: 'default',
      androidSmallIcon: 'ic_stat_notif',
      androidLargeIcon:
          'https://lh3.googleusercontent.com/-2CP3JmsQzco/AAAAAAAAAAI/AAAAAAAAAAA/AAN31DXIEj2LOgTMtJlA-88kDMjwmxMSEw/s64-c-mo/photo.jpg',
      additionalData: {
        'foo': 'this is a foo value',
        'bar': 'this is a bar value'
      },
    );

    var response = await signal.postNotification(notification);

Error logs

W/System.err( 3167): java.lang.IllegalArgumentException: Unsupported value: null
W/System.err( 3167): 	at io.flutter.plugin.common.StandardMessageCodec.writeValue(StandardMessageCodec.java:293)
W/System.err( 3167): 	at io.flutter.plugin.common.StandardMessageCodec.writeValue(StandardMessageCodec.java:290)
W/System.err( 3167): 	at io.flutter.plugin.common.StandardMethodCodec.encodeSuccessEnvelope(StandardMethodCodec.java:57)
W/System.err( 3167): 	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler$1.success(MethodChannel.java:194)
W/System.err( 3167): 	at com.onesignal.flutter.OneSignalPlugin$1.onSuccess(OneSignalPlugin.java:184)
W/System.err( 3167): 	at com.onesignal.OneSignal$12.onSuccess(OneSignal.java:1567)
W/System.err( 3167): 	at com.onesignal.OneSignalRestClient$5.run(OneSignalRestClient.java:208)
W/System.err( 3167): 	at java.lang.Thread.run(Thread.java:764)

Dependency

dependencies:
    onesignal: ^1.0.0

iOS 12.0 / 12.1 not supported ?

Description:

Your README.md indicates this is only tested to iOS 11.3. So is 12.0 / 12.1 not supported? Or just not tested or -- tested but the README.md is out of date?

Environment

N/A

Steps to Reproduce Issue:

N/A

Archive fails to build in Xcode

Read through all the similar issues and agree with other posters that the Onesignal Flutter IOS docs need to be updated and/or corrected. At the moment, they are not sufficient to make Onesignal usable for a flutter project in IOS.

I've followed them to the letter and can't make the archive of my flutter project build. Errors seem to be around
clang: error: linker command failed with exit code 1 (use -v to see invocation)

It built archives fine without Onesignal. I've created and re-created provisioning profiles to add groups, created the onesignal group, added and re-added certificates, did numerous pod installs, disabled and enabled BITCODE in Xcode, linked binary with libraries, yet nothing seems to satisfy the archive to build...

Before giving up completely on Onesignal - if anyone has managed to get your actual flutter project to use Onesignal AND archive in IOS - can you share your steps please as the official docs are unfortunately either incomplete or incorrect

Flutter OneSignal not Archive

Description:

since i added onesignal i can not Archive the app anymore 👎

After a thousand and thousand attempts, I managed to start the app on the simulator, on the physical device now i can not archive.

Environment
[✓] Flutter (Channel master, v1.0.1-pre.17, on Mac OS X 10.14.1 18B75, locale it-IT)
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
[✓] Android Studio (version 3.2)
[✓] VS Code (version 1.30.0)
[✓] Connected device (1 available)

Steps to Reproduce Issue:

  1. install as on tutorial OneSignal

  2. modify pod

  3. add OneSignalNotificationServiceExtension

  4. etc.

  5. flutter run -d (simulator)

  6. flutter run -d (iphone)

  7. flutter build ios --debug

  8. flutter build ios --release
    [
    ISSUE
    ld: warning: directory not found for option '-L/Users/user/development/project/beeing/build/ios/Release-iphoneos/map_view'
    ld: warning: directory not found for option '-L/Users/user/development/project/beeing/build/ios/Release-iphoneos/onesignal'
    ld: warning: directory not found for option '-L/Users/user/development/project/beeing/build/ios/Release-iphoneos/path_provider'
    ld: warning: directory not found for option '-L/Users/user/development/project/beeing/build/ios/Release-iphoneos/shared_preferences'
    ld: warning: directory not found for option '-L/Users/user/development/project/beeing/build/ios/Release-iphoneos/sqflite'
    ld: warning: directory not found for option '-L/Users/user/development/project/beeing/build/ios/Release-iphoneos/url_launcher'
    ld: library not found for -lmap_view
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    ]

  9. open xcode prj and run on iphone

  10. open xcode prj and archive
    [
    ISSUE
    ld: warning: directory not found for option '-L/Users/user/Library/Developer/Xcode/DerivedData/Runner-goniqgujdqkwjpcrkbgqqkznjuce/ArchiveIntermediates/Runner/BuildProductsPath/Release-iphoneos/FMDB'
    ld: warning: directory not found for option '-L/Users/user/Library/Developer/Xcode/DerivedData/Runner-goniqgujdqkwjpcrkbgqqkznjuce/ArchiveIntermediates/Runner/BuildProductsPath/Release-iphoneos/MTBBarcodeScanner'
    ld: warning: directory not found for option '-L/Users/user/Library/Developer/Xcode/DerivedData/Runner-goniqgujdqkwjpcrkbgqqkznjuce/ArchiveIntermediates/Runner/BuildProductsPath/Release-iphoneos/barcode_scan'
    ld: warning: directory not found for option '-L/Users/user/Library/Developer/Xcode/DerivedData/Runner-goniqgujdqkwjpcrkbgqqkznjuce/ArchiveIntermediates/Runner/BuildProductsPath/Release-iphoneos/image_picker'
    ld: warning: directory not found for option '-L/Users/user/Library/Developer/Xcode/DerivedData/Runner-goniqgujdqkwjpcrkbgqqkznjuce/ArchiveIntermediates/Runner/BuildProductsPath/Release-iphoneos/map_view'
    ld: warning: directory not found for option '-L/Users/user/Library/Developer/Xcode/DerivedData/Runner-goniqgujdqkwjpcrkbgqqkznjuce/ArchiveIntermediates/Runner/BuildProductsPath/Release-iphoneos/onesignal'
    ld: warning: directory not found for option '-L/Users/user/Library/Developer/Xcode/DerivedData/Runner-goniqgujdqkwjpcrkbgqqkznjuce/ArchiveIntermediates/Runner/BuildProductsPath/Release-iphoneos/path_provider'
    ld: warning: directory not found for option '-L/Users/user/Library/Developer/Xcode/DerivedData/Runner-goniqgujdqkwjpcrkbgqqkznjuce/ArchiveIntermediates/Runner/BuildProductsPath/Release-iphoneos/shared_preferences'
    ld: warning: directory not found for option '-L/Users/user/Library/Developer/Xcode/DerivedData/Runner-goniqgujdqkwjpcrkbgqqkznjuce/ArchiveIntermediates/Runner/BuildProductsPath/Release-iphoneos/sqflite'
    ld: warning: directory not found for option '-L/Users/user/Library/Developer/Xcode/DerivedData/Runner-goniqgujdqkwjpcrkbgqqkznjuce/ArchiveIntermediates/Runner/BuildProductsPath/Release-iphoneos/url_launcher'
    ld: library not found for -lFMDB
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    ]

OneSignal.h file not found

flutter build ios:

=== BUILD TARGET path_provider OF PROJECT Pods WITH CONFIGURATION Debug ===
/Users/myUser/AndroidStudioProjects/myApp/ios/OneSignalNotificationServiceExtension/NotificationService.m:1:9: fatal error: 'OneSignal/OneSignal.h' file not found
#import <OneSignal/OneSignal.h>

flutter doctor:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v0.10.2, on Mac OS X 10.13.6 17G65, locale ru-RU)
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.0)
[✓] Android Studio (version 3.2)
[✓] Connected device (1 available)

please tell me where is the problem

Directory not found error

I am trying to follow closing this link https://documentation.onesignal.com/docs/flutter-sdk-setup but I found something weird

  1. I dont find this file when comes to this step 2.9 Reopen the Xcode project. In your project, in the OneSignalNotificationServiceExtension/ folder, open NotificationService.m and replace the whole file contents with:
  2. Secondly what should I do for this step 2.6 Open the Xcode project settings and select the OneSignalNotificationServiceExtension target. Unless you have a specific reason not to, you should set the Deployment Target to be iOS 10. I put now to be 12.1
  3. I have ensure the pod file is correctly done.
    4.I am not too sure to open it via .xcodeproj or xcworkspace
  4. Lastly when I try to build I keep getting this error
    ld: warning: directory not found for option '-L/Users/*****/Library/Developer/Xcode/DerivedData/Runner-dnappsqahwvqpegshbehdnrpnher/Build/Products/Debug-iphonesimulator/onesignal'
    ld: library not found for -lonesignal
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

I tried deleting the pod and podlock and reinstall also the same.

#import <OneSignal/OneSignal.h>

I am having this issue, I cannot remove use_framework! line since I already use another plugin in swift which requires. "use_framework!" line.

Xcode's output:

In file included from /Users/vivekmohan/Work/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.3/ios/Classes/OneSignalCategories.m:28:
/Users/vivekmohan/Work/flutter/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.3/ios/Classes/OneSignalCategories.h:28:9: fatal error: 'OneSignal/OneSignal.h' file not found
#import <OneSignal/OneSignal.h>
^~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

I use another swift plugin flutter_razorpay

Different version for the compile and runtime classpath

when you try to bould apk:

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:preReleaseBuild'.

Android dependency 'com.google.android.gms:play-services-base' has different version for the compile (12.0.1) and runtime (15.0.1) classpath. You should manually set the same version via DependencyReso
lution

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

environment:
sdk: ">=2.0.0-dev.68.0 <3.0.0"

dependencies:
flutter:
sdk: flutter

flutter doctor -v
[√] Flutter (Channel beta, v0.9.4, on Microsoft Windows [Version 10.0.17134.345], locale ru-RU)
• Flutter version 0.9.4 at C:\flutter
• Framework revision f37c235c32 (6 weeks ago), 2018-09-25 17:45:40 -0400
• Engine revision 74625aed32
• Dart version 2.1.0-dev.5.0.flutter-a2eb050044

[√] Android toolchain - develop for Android devices (Android SDK 28.0.3)
• Android SDK at D:\android
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
• All Android licenses accepted.

[√] Android Studio (version 3.2)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 30.0.1
• Dart plugin version 181.5656
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[!] Connected devices
! No devices available

tell me where and what to fix!!! pls

Navigate to screen when notification is opened

Description:

I need to navigate to a screen when the notification is opened, but I can't get it.
The app just is opened in main screen.

Environment
onesignal: ^1.0.0

Steps to Reproduce Issue:

  1. Install the OneSignal Flutter SDK using pub into your project
  2. Initialize the SDK using OneSignal.shared.init(your_app_id)
  3. Attempt to receive a push notification

This is the code of my main.dart:

void main() async {
  // Create Persistor
  final persistor = Persistor<AppState>(
    storage: FlutterStorage(),
    serializer: JsonSerializer<AppState>(AppState.fromJson),
  );

  // Load initial state
  final initialState = await persistor.load();

  final store = Store<AppState>(
    appReducer, /* Function defined in the reducers file */
    initialState: initialState ?? AppState.initial(),
    middleware: [persistor.createMiddleware()],
  );

  OneSignal.shared.setLogLevel(OSLogLevel.verbose, OSLogLevel.none);

  var settings = {
    OSiOSSettings.autoPrompt: false,
    OSiOSSettings.promptBeforeOpeningPushUrl: true
  };

  await OneSignal.shared.init("ID", iOSSettings: settings);

  OneSignal.shared.setInFocusDisplayType(OSNotificationDisplayType.notification);

  runApp(MyApp(store: store));
}

class MyApp extends StatefulWidget {
  final Store<AppState> store;

  const MyApp({Key key, this.store}) : super(key: key);

  @override
  _MyAppState createState() => new _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
    initPlatformState();
  }

  // Platform messages are asynchronous, so we initialize in an async method.
  Future<void> initPlatformState() async {
    if (!mounted) return;

    OneSignal.shared.setNotificationOpenedHandler((OSNotificationOpenedResult result) {
      Navigator.push(
        context,
        MaterialPageRoute(
          builder: (context) => AnotherScreen(id: result.notification.payload.additionalData["id"]),
        ),
      );
    });
  }

  @override
  Widget build(BuildContext context) {
    return new  StoreProvider<AppState>(
        store: widget.store,
        child: new MaterialApp(
            initialRoute: '/',
            theme: ThemeData(
              primaryColor: Color(0xff92171A),
              buttonTheme: ButtonThemeData(
                textTheme: ButtonTextTheme.accent,
              ),
            ),
            routes: {
              '/': (context) => HomeScreen(),
            }
        )
    );
  }
}

Anything else:

(crash stacktraces, as well as any other information here)

Can't init

Can't init OneSignal

OneSignal.shared.setLogLevel(OSLogLevel.verbose, OSLogLevel.verbose);
await OneSignal.shared.init(---myapid----);

in response have
V/OneSignal( 7769): Initializing the OneSignal Flutter SDK (0.1.0)

and that is ... next code after init line is not executed

dependancies:
onesignal: ^1.0.0

Error build failed libonesignal.a does not contain bitcode when running flutter run command

Description:

I followed the guide in one signal documentation, change the package version to 1.0.2 and when I run flutter run it shows below error message

Error output from Xcode build:
↳
    ** BUILD FAILED **

Xcode's output:
↳
    === BUILD TARGET Pods-Runner OF PROJECT Pods WITH CONFIGURATION Debug ===
    ld: '/Users/macmini1/Projects/flutter/myproject/build/ios/Debug-iphoneos/onesignal/libonesignal.a(onesignal-dummy.o)' does not contain bitcode. 
You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), 
obtain an updated library from the vendor, or disable bitcode for this target.
 file '/Users/macmini1/Projects/flutter/myproject/build/ios/Debug-iphoneos/onesignal/libonesignal.a' for architecture armv7
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
Could not build the precompiled application for the device.

Environment
onesignal: ^1.0.2

flutter doctor :
`
[✓] Flutter (Channel beta, v0.8.2, on Mac OS X 10.13.6 17G65, locale en-US)
• Flutter version 0.8.2 at /Users/macmini1/Program/flutter
• Framework revision 5ab9e70727 (5 weeks ago), 2018-09-07 12:33:05 -0700
• Engine revision 58a1894a1c
• Dart version 2.1.0-dev.3.1.flutter-760a9690c2

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at /Users/macmini1/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 27.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
• All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.0)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.0, Build version 10A255
• ios-deploy 1.9.2
• CocoaPods version 1.5.3

[✓] Android Studio (version 3.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 29.0.2
• Dart plugin version 181.5540.11
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[✓] VS Code (version 1.27.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 2.19.0

[✓] Connected devices (2 available)
• LG M400 • LGM400GAGM6TZS556S • android-arm • Android 7.0 (API 24)
• iPhone •aa1f8ca15b21ddb3f2bfcf3acd92cd2a2fc1075 • ios • iOS 11.4

• No issues found!`

Steps to Reproduce Issue:

  1. add flutter dependencies onesignal: 1.0.2 (run flutter packages get)
  2. add below line to pod file. :
   target 'OneSignalNotificationServiceExtension' do
      pod 'OneSignalDynamic', '>= 2.8.8', '< 3.0'
   end

run pod install

  1. add target OneSignalServiceExtension in xCode. change the code with the one that from one signal flutter documentation.

  2. add appgroup capabilities and so on (following the documentation in onesignal flutter documentation)

  3. flutter run

and then error happens like I described above.

setExternalUserId Not present in 1.0.3

Description:

In the 1.0.3 version of the plugin installed using pub, the function setExternalUserId is not present, but is listed in the official documentation Link.
did you plan to release a new version with this function included soon?

Conflict with other firebase plugins and google services

I've installed and ran onesignal on flutter, successfully. But when i added firebase auth and database plugins, i get the following build error. It's clear that there's some sort of conflict between the plugins.

Launching lib/main.dart on Android SDK built for x86 in debug mode...

FAILURE: Build failed with an exception.

  • What went wrong:
    Could not resolve all files for configuration ':app:debugCompileClasspath'.

Could not find com.google.android.gms:play-services-measurement-base:11.8.0.
Required by:
project :app > project :firebase_core > com.google.firebase:firebase-core:11.8.0 > com.google.firebase:firebase-analytics:15.0.2
Could not find com.google.android.gms:play-services-stats:11.8.0.
Required by:
project :app > project :firebase_core > com.google.firebase:firebase-core:11.8.0 > com.google.firebase:firebase-analytics:15.0.2
project :app > project :onesignal > com.onesignal:OneSignal:3.10.3 > com.google.firebase:firebase-messaging:17.0.0 > com.google.firebase:firebase-iid:15.1.0
Could not find com.google.android.gms:play-services-places-placereport:11.8.0.
Required by:
project :app > project :google_api_availability > com.google.android.gms:play-services-location:15.0.1
Could not find com.google.firebase:firebase-measurement-connector:11.8.0.
Required by:
project :app > project :onesignal > com.onesignal:OneSignal:3.10.3 > com.google.firebase:firebase-messaging:17.0.0
Could not find com.google.firebase:firebase-iid-interop:11.8.0.
Required by:
project :app > project :onesignal > com.onesignal:OneSignal:3.10.3 > com.google.firebase:firebase-messaging:17.0.0 > com.google.firebase:firebase-iid:15.1.0

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 2m 11s
Gradle task assembleDebug failed with exit code 1
Exited (sigterm)

Environment
I'm using onesignal: ^1.0.0.
heres my pubspec.yaml file*

name: flutter-app
description: A new Flutter project.

dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter

cupertino_icons: ^0.1.2
url_launcher: "^3.0.2"

dev_dependencies:
flutter_test:
sdk: flutter

http: "^0.11.3+16"
shared_preferences: "^0.4.1"

flutter_facebook_login: "^1.1.1"
firebase_auth: "^0.5.12"
google_sign_in: "^3.0.3"
flutter_webview_plugin: ^0.2.1+2

firebase_database: ^1.0.4
intl_translation: "^0.17.0"
onesignal: ^1.0.0

image_picker: "^0.4.1"
intl: "^0.15.7"

geolocator: ^2.0.1

flutter:

uses-material-design: true

assets:
- assets/logo.png
- assets/logo_small.png
- assets/placeholder.jpg

fonts:
- family: lato
fonts:
- asset: assets/fonts/lato-regular.ttf
- asset: assets/fonts/lato-medium.ttf
- asset: assets/fonts/lato-bold.ttf

OneSignal.shared.getTags method returns null pointer exception if there are no tags on one signal

Description:

Hello, I am using this plugin in one of my projects and the issue is that whenever i call OneSignal.shared.getTags method in my flutter code it gives me null pointer exception. Note that for the first time when the device get registered on one signal there are no tags on onesignal with that device unless you send a tag for the first time. Now in my project every time I have to get old tags from one signal and then delete old tags and then add new tags on one signal. The problem in short that if there are no tags on one signal and you try to call OneSignal.shared.getTags method then you will get a null pointer exception.

Environment

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v0.7.3, on Mac OS X 10.13.5 17F77, locale en-OM)
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.1)
[✓] iOS toolchain - develop for iOS devices (Xcode 9.3.1)
[✓] Android Studio (version 3.1)
[!] VS Code (version 1.26.1)
[✓] Connected devices (1 available)

! Doctor found issues in 1 category.

One signal plugin version in pubspec.yaml
onesignal: ^1.0.1

Also: I ran the app on android emulator Nexus 4 API 27

Steps to Reproduce Issue:

  1. Setup a new basic flutter project
  2. Register a device on onesignal with OneSignal.shared.init method
  3. try to call OneSignal.shared.getTags method

Anything else:

I think that there is a problem with com.onesignal.flutter.OneSignalSerializer.convertJSONObjectToHashMap method as there is no check on null object If object is null it should not call object.keys().

Or Maybe I am wrong there is some problem with my code. I don't know.

Stack Trace
09-10 15:02:54.970 31812-31910/com.example.app E/AndroidRuntime: FATAL EXCEPTION: OS_GETTAGS_CALLBACK
Process: com.example.app, PID: 31812
java.lang.NullPointerException: Attempt to invoke virtual method
'java.util.Iterator org.json.JSONObject.keys()' on a null object reference at com.onesignal.flutter.OneSignalSerializer.convertJSONObjectToHashMap(OneSignalSerializer.java:202) at com.onesignal.flutter.OSFlutterChangeTagsHandler.tagsAvailable(OneSignalTagsController.java:63) at com.onesignal.OneSignal$14.run(OneSignal.java:1653) at java.lang.Thread.run(Thread.java:764)

Error in pod install (using swift)

Description:

Error in pod install when add onesignal to packages, just on ios, android works fine!

Environment

tested with 1.0.0 and 1.0.1
pub and follow setup guide

Steps to Reproduce Issue:

  1. Install the OneSignal Flutter SDK using pub into your project
  2. compile and get the error

Anything else:

[!] The 'Pods-Runner' target has transitive dependencies that include static binaries: (/Users/XXXX/Documents/FlutterProjects/XXXXX/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework)

/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/installer/xcode/target_validator.rb:81:in `block (2 levels) in verify_no_static_framework_transitive_dependencies'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/installer/xcode/target_validator.rb:73:in `each'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/installer/xcode/target_validator.rb:73:in `block in verify_no_static_framework_transitive_dependencies'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/installer/xcode/target_validator.rb:70:in `each'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/installer/xcode/target_validator.rb:70:in `verify_no_static_framework_transitive_dependencies'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/installer/xcode/target_validator.rb:36:in `validate!'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/installer.rb:415:in `validate_targets'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/installer.rb:118:in `install!'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/command/install.rb:41:in `run'
/Library/Ruby/Gems/2.3.0/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/lib/cocoapods/command.rb:52:in `run'
/Library/Ruby/Gems/2.3.0/gems/cocoapods-1.5.3/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:22:in `load'
/usr/local/bin/pod:22:in `<main>'

The request to open OneSignalNotificationServiceExtension Failed. Is unknown to FrontBoard

Description:

Followed the documentation several times, tried a fresh project too, I'm getting the following error when I try to launch the app onto the simulator. The app appears to be installed I can launch the app if I manually tap the app icon without it crashing.

Xcode build done.                                           75.1s
ProcessException: Process "/usr/bin/xcrun" exited abnormally:
com.mycompany.myapp.OneSignalNotificationServiceExtension: -1
An error was encountered processing the command (domain=FBSOpenApplicationServiceErrorDomain, code=1):
The request to open "com.mycompany.myapp.OneSignalNotificationServiceExtension" failed.
The request was denied by service delegate (SBMainWorkspace) for reason: NotFound ("Application "com.mycompany.myapp.OneSignalNotificationServiceExtension" is unknown to FrontBoard").
Underlying error (domain=FBSOpenApplicationErrorDomain, code=4):
	The operation couldn’t be completed. Application "com.mycompany.myapp.OneSignalNotificationServiceExtension" is unknown to FrontBoard.
	Application "com.mycompany.myapp.OneSignalNotificationServiceExtension" is unknown to FrontBoard.
  Command: /usr/bin/xcrun simctl launch F3905523-374A-44FC-849D-F8539EDBF038 com.bsava.mybsava.OneSignalNotificationServiceExtension --enable-dart-profiling --enable-checked-mode --observatory-port=0
Error launching application on iPhone XR.

Environment

$ pod install
Analyzing dependencies
Fetching podspec for `Flutter` from `.symlinks/flutter/ios`
Fetching podspec for `device_info` from `.symlinks/plugins/device_info/ios`
Fetching podspec for `flutter_full_pdf_viewer` from `.symlinks/plugins/flutter_full_pdf_viewer/ios`
Fetching podspec for `image_picker` from `.symlinks/plugins/image_picker/ios`
Fetching podspec for `onesignal` from `.symlinks/plugins/onesignal/ios`
Fetching podspec for `open_file` from `.symlinks/plugins/open_file/ios`
Fetching podspec for `package_info` from `.symlinks/plugins/package_info/ios`
Fetching podspec for `path_provider` from `.symlinks/plugins/path_provider/ios`
Fetching podspec for `sqflite` from `.symlinks/plugins/sqflite/ios`
Fetching podspec for `url_launcher` from `.symlinks/plugins/url_launcher/ios`
Downloading dependencies
Using FMDB (2.7.5)
Using Flutter (1.0.0)
Using OneSignal (2.9.5)
Using device_info (0.0.1)
Using flutter_full_pdf_viewer (1.0.1)
Using image_picker (0.0.1)
Using onesignal (1.0.5)
Using open_file (0.0.1)
Using package_info (0.0.1)
Using path_provider (0.0.1)
Using sqflite (0.0.1)
Using url_launcher (0.0.1)
Generating Pods project
Integrating client project
Pod installation complete! There are 11 dependencies from the Podfile and 12 total pods installed.

[!] Automatically assigning platform `ios` with version `10.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.

[!] Automatically assigning platform `ios` with version `10.0` on target `OneSignalNotificationServiceExtension` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.

flutter doctor -v
[✓] Flutter (Channel dev, v1.1.9, on Mac OS X 10.14.2 18C54, locale en-GB)
    • Flutter version 1.1.9 at /Users/xxxx/Documents/Programming/flutter
    • Framework revision 1407091bfb (3 weeks ago), 2019-01-08 20:40:19 -0800
    • Engine revision 7112b72cc2
    • Dart version 2.1.1 (build 2.1.1-dev.0.1 ec86471ccc)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /Users/xxxx/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.1, Build version 10B61
    • ios-deploy 1.9.4
    • CocoaPods version 1.6.0.rc.1

[✓] Android Studio (version 3.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 31.3.3
    • Dart plugin version 182.5124
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)

[✓] VS Code (version 1.29.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 2.21.1

[✓] Connected device (2 available)
    • IT’s iPhone • 0000000-000000000000000            • ios • iOS 12.1.3
    • iPhone XR         • F3905523-374A-44FC-849D-F8539EDBF038 • ios • iOS 12.1 (simulator)

• No issues found!

Steps to Reproduce Issue:

  1. Install the OneSignal Flutter SDK using pub into your project following guide - https://documentation.onesignal.com/docs/flutter-sdk-setup
  2. In Visual Studio Code, select simulator device, Start Without Debugging
  3. wait for build to complete
  4. fails immediately after build complete

Anything else:

Dart Code extension: 2.21.1
Flutter extension: 2.21.1
VS Code: 1.29.1
Platform: mac
Workspace type: Flutter
Multi-root?: false
Dart SDK:
    Loc: /Users/me/Documents/Programming/flutter/bin/cache/dart-sdk
    Ver: 2.2.0-edge.ec86471ccc47a62df8b4009e1fb37c66ff9dc91b
Flutter SDK:
    Loc: /Users/me/Documents/Programming/flutter
    Ver: 1.1.9

Wed Jan 30 2019 [11:21:44 GMT+0000 (GMT)] Log file started
[11:21:44 GMT+0000 (GMT)] [Analyzer] [Info] ==> {"id":"570","method":"analysis.setPriorityFiles","params":{"files":["/Users/me/Documents/Programming/myapp/lib/main.dart","/Users/me/Documents/Programming/myapp/lib/View/FormularyGuide/formulary_view.dart","/Users/me/Documents/Programming/myapp/lib/View/Home/home_view.dart"]}}
[11:21:44 GMT+0000 (GMT)] [Analyzer] [Info] ==> {"id":"571","method":"analysis.setSubscriptions","params":{"subscriptions":{"CLOSING_LABELS":["/Users/me/Documents/Programming/myapp/lib/main.dart","/Users/me/Documents/Programming/myapp/lib/View/FormularyGuide/formulary_view.dart","/Users/me/Documents/Programming/myapp/lib/View/Home/home_view.dart"],"FOLDING":["/Users/me/Documents/Programming/myapp/lib/main.dart","/Users/me/Documents/Programming/myapp/lib/View/FormularyGuide/formulary_view.dart","/Users/me/Documents/Programming/myapp/lib/View/Home/home_view.dart"],"OCCURRENCES":["/Users/me/Documents/Programming/myapp/lib/main.dart","/Users/me/Documents/Programming/myapp/lib/View/FormularyGuide/formulary_view.dart","/Users/me/Documents/Programming/myapp/lib/View/Home/home_view.dart"],"OUTLINE":["/Users/me/Documents/Programming/myapp/lib/main.dart","/Users/me/Documents/Programming/myapp/lib/View/FormularyGuide/formulary_view.dart","/Users/me/Documents/Programming/myapp/lib/View/Home/home_view.dart"]}}}
[11:21:44 GMT+0000 (GMT)] [Analyzer] [Info] <== {"id":"570"}
[11:21:44 GMT+0000 (GMT)] [Analyzer] [Info] <== {"id":"571"}
[11:21:44 GMT+0000 (GMT)] [Analyzer] [Info] <== {"event":"analysis.errors","params":{"file":"/Users/me/Documents/Programming/myapp/lib/main.dart","errors":[{"severity":"INFO","type":"HINT","location":{"file":"/Users/me/Documents/Programming/myapp/lib/main.dart","offset":1354,"length":12,"startLine":31,"startColumn":10},"message":"The value of the local variable '_defaultView' isn't used.","correction":"Try removing the variable, or using it.","code":"unused_local_variable","hasFix":false}]}}
[11:21:44 GMT+0000 (GMT)] [Analyzer] [Info] <== {"event":"analysis.errors","params":{"file":"/Users/me/Documents/Programming/myapp/lib/View/FormularyGuide/formulary_view.dart","errors":[{"severity":"INFO","type":"HINT","location":{"file":"/Users/me/Documents/Programming/myapp/lib/View/FormularyGuide/formulary_view.dart","offset":14198,"length":13,"startLine":395,"startColumn":3},"message":"The method '_tgScrollView' isn't used.","correction":"Try removing the declaration of '_tgScrollView'.","code":"unused_element","hasFix":false},{"severity":"INFO","type":"HINT","location":{"file":"/Users/me/Documents/Programming/myapp/lib/View/FormularyGuide/formulary_view.dart","offset":8484,"length":17,"startLine":243,"startColumn":16},"message":"The method '_downloadDrugData' isn't used.","correction":"Try removing the declaration of '_downloadDrugData'.","code":"unused_element","hasFix":false},{"severity":"INFO","type":"HINT","location":{"file":"/Users/me/Documents/Programming/myapp/lib/View/FormularyGuide/formulary_view.dart","offset":2318,"length":4,"startLine":54,"startColumn":10},"message":"The value of the field '_url' isn't used.","correction":"Try removing the field, or using it.","code":"unused_field","hasFix":false},{"severity":"INFO","type":"LINT","location":{"file":"/Users/me/Documents/Programming/myapp/lib/View/FormularyGuide/formulary_view.dart","offset":3016,"length":9,"startLine":77,"startColumn":22},"message":"Name non-constant identifiers using lowerCamelCase.","code":"non_constant_identifier_names","hasFix":false},{"severity":"INFO","type":"HINT","location":{"file":"/Users/me/Documents/Programming/myapp/lib/View/FormularyGuide/formulary_view.dart","offset":3078,"length":14,"startLine":78,"startColumn":17},"message":"The value of the field '_tabController' isn't used.","correction":"Try removing the field, or using it.","code":"unused_field","hasFix":false},{"severity":"INFO","type":"TODO","location":{"file":"/Users/me/Documents/Programming/my…
[11:21:44 GMT+0000 (GMT)] [Analyzer] [Info] <== {"event":"analysis.errors","params":{"file":"/Users/me/Documents/Programming/myapp/lib/View/Home/home_view.dart","errors":[{"severity":"INFO","type":"HINT","location":{"file":"/Users/me/Documents/Programming/myapp/lib/View/Home/home_view.dart","offset":2657,"length":26,"startLine":82,"startColumn":5},"message":"The function '_notificationIconAnimation' isn't used.","correction":"Try removing the declaration of '_notificationIconAnimation'.","code":"unused_element","hasFix":false},{"severity":"INFO","type":"HINT","location":{"file":"/Users/me/Documents/Programming/myapp/lib/View/Home/home_view.dart","offset":1029,"length":4,"startLine":29,"startColumn":16},"message":"The value of the field '_ctx' isn't used.","correction":"Try removing the field, or using it.","code":"unused_field","hasFix":false},{"severity":"INFO","type":"HINT","location":{"file":"/Users/me/Documents/Programming/myapp/lib/View/Home/home_view.dart","offset":5229,"length":13,"startLine":172,"startColumn":8},"message":"The method '_showSnackBar' isn't used.","correction":"Try removing the declaration of '_showSnackBar'.","code":"unused_element","hasFix":false},{"severity":"INFO","type":"HINT","location":{"file":"/Users/me/Documents/Programming/myapp/lib/View/Home/home_view.dart","offset":17031,"length":13,"startLine":495,"startColumn":8},"message":"Method doesn't override an inherited method.","correction":"Try updating this class to match the superclass, or removing the override annotation.","code":"override_on_non_overriding_method","hasFix":false},{"severity":"INFO","type":"HINT","location":{"file":"/Users/me/Documents/Programming/myapp/lib/View/Home/home_view.dart","offset":1042,"length":10,"startLine":30,"startColumn":8},"message":"The value of the field '_isLoading' isn't used.","correction":"Try removing the field, or using it.","code":"unused_field","hasFix":false}]}}
[11:21:44 GMT+0000 (GMT)] [Analyzer] [Info] <== {"event":"analysis.occurrences","params":{"file":"/Users/me/Documents/Programming/myapp/lib/main.dart","occurrences":[{"element":{"kind":"FUNCTION","name":"main","location":{"file":"/Users/me/Documents/Programming/myapp/lib/main.dart","offset":1309,"length":4,"startLine":29,"startColumn":6},"flags":8,"parameters":"()","returnType":"void"},"offsets":[1309],"length":4},{"element":{"kind":"CLASS","name":"Widget","location":{"file":"/Users/me/Documents/Programming/flutter/packages/flutter/lib/src/widgets/framework.dart","offset":14474,"length":6,"startLine":381,"startColumn":16},"flags":1},"offsets":[1347],"length":6},{"element":{"kind":"LOCAL_VARIABLE","name":"_defaultView","location":{"file":"/Users/me/Documents/Programming/myapp/lib/main.dart","offset":1354,"length":12,"startLine":31,"startColumn":10},"flags":16,"returnType":"Widget"},"offsets":[1354,1499],"length":12},{"element":{"kind":"CLASS","name":"SplashView","location":{"file":"/Users/me/Documents/Programming/myapp/lib/View/splash.dart","offset":399,"length":10,"startLine":11,"startColumn":7},"flags":0},"offsets":[1373,1728,1959],"length":10},{"element":{"kind":"CLASS","name":"bool","location":{"file":"/Users/me/Documents/Programming/flutter/bin/cache/pkg/sky_engine/lib/core/bool.dart","offset":471,"length":4,"startLine":15,"startColumn":7},"flags":0},"offsets":[1438,1786],"length":4},{"element":{"kind":"LOCAL_VARIABLE","name":"_result","location":{"file":"/Users/me/Documents/Programming/myapp/lib/main.dart","offset":1443,"length":7,"startLine":34,"startColumn":8},"flags":16,"returnType":"bool"},"offsets":[1443,1484],"length":7},{"element":{"kind":"FUNCTION","name":"checkIfLoggedIn","location":{"file":"/Users/me/Documents/Programming/myapp/lib/main.dart","offset":1792,"length":15,"startLine":53,"startColumn":14},"flags":8,"parameters":"()","returnType":"Future<bool>"},"offsets":[1459,1792],"length":15},{"element":{"kind":"CLASS","name":"Ho…
[11:21:44 GMT+0000 (GMT)] [Analyzer] [Info] <== {"event":"analysis.closingLabels","params":{"file":"/Users/me/Documents/Programming/myapp/lib/main.dart","labels":[{"offset":1618,"length":151,"label":"MaterialApp"}]}}
[11:21:44 GMT+0000 (GMT)] [Analyzer] [Info] <== {"event":"analysis.folding","params":{"file":"/Users/me/Documents/Programming/myapp/lib/main.dart","regions":[{"kind":"FUNCTION_BODY","offset":1323,"length":453},{"kind":"INVOCATION","offset":1613,"length":160},{"kind":"INVOCATION","offset":1634,"length":134},{"kind":"FUNCTION_BODY","offset":1817,"length":41},{"kind":"LITERAL","offset":1898,"length":2121},{"kind":"DIRECTIVES","offset":6,"length":1294}]}}
[11:21:44 GMT+0000 (GMT)] [Analyzer] [Info] <== {"event":"analysis.outline","params":{"file":"/Users/me/Documents/Programming/myapp/lib/main.dart","kind":"LIBRARY","outline":{"element":{"kind":"COMPILATION_UNIT","name":"<unit>","location":{"file":"/Users/me/Documents/Programming/myapp/lib/main.dart","offset":0,"length":4022,"startLine":1,"startColumn":1},"flags":0},"offset":0,"length":4022,"codeOffset":0,"codeLength":4022,"children":[{"element":{"kind":"FUNCTION","name":"main","location":{"file":"/Users/me/Documents/Programming/myapp/lib/main.dart","offset":1309,"length":4,"startLine":29,"startColumn":6},"flags":8,"parameters":"()","returnType":"void"},"offset":1304,"length":473,"codeOffset":1304,"codeLength":473,"children":[{"element":{"kind":"CONSTRUCTOR_INVOCATION","name":"SplashView","location":{"file":"/Users/me/Documents/Programming/myapp/lib/main.dart","offset":1369,"length":0,"startLine":31,"startColumn":25},"flags":0},"offset":1369,"length":16,"codeOffset":1369,"codeLength":16},{"element":{"kind":"CONSTRUCTOR_INVOCATION","name":"HomeView","location":{"file":"/Users/me/Documents/Programming/myapp/lib/main.dart","offset":1514,"length":0,"startLine":36,"startColumn":20},"flags":0},"offset":1514,"length":14,"codeOffset":1514,"codeLength":14},{"element":{"kind":"CONSTRUCTOR_INVOCATION","name":"MaterialApp","location":{"file":"/Users/me/Documents/Programming/myapp/lib/main.dart","offset":1618,"length":0,"startLine":44,"startColumn":5},"flags":0},"offset":1618,"length":151,"codeOffset":1618,"codeLength":151,"children":[{"element":{"kind":"CONSTRUCTOR_INVOCATION","name":"SplashView","location":{"file":"/Users/me/Documents/Programming/myapp/lib/main.dart","offset":1728,"length":0,"startLine":47,"startColumn":13},"flags":0},"offset":1728,"length":12,"codeOffset":1728,"codeLength":12}]}]},{"element":{"kind":"FUNCTION","name":"checkIfLoggedIn","location":{"file":"/Users/me/Documents/Programming/myapp/lib/main.dart","offset":1792,"length":15,…
[11:21:44 GMT+0000 (GMT)] [Analyzer] [Info] <== {"event":"analysis.occurrences","params":{"file":"/Users/me/Documents/Programming/myapp/lib/View/FormularyGuide/formulary_view.dart","occurrences":[{"element":{"kind":"PREFIX","name":"customTile","location":{"file":"/Users/me/Documents/Programming/myapp/lib/View/FormularyGuide/formulary_view.dart","offset":1491,"length":10,"startLine":29,"startColumn":62},"flags":0},"offsets":[1491,12016,24603,58001],"length":10},{"element":{"kind":"CLASS","name":"FormularyGuideView","location":{"file":"/Users/me/Documents/Programming/myapp/lib/View/FormularyGuide/formulary_view.dart","offset":1510,"length":18,"startLine":31,"startColumn":7},"flags":0},"offsets":[1510,1556,1840],"length":18},{"element":{"kind":"CLASS","name":"StatefulWidget","location":{"file":"/Users/me/Documents/Programming/flutter/packages/flutter/lib/src/widgets/framework.dart","offset":32706,"length":14,"startLine":787,"startColumn":16},"flags":1},"offsets":[1537],"length":14},{"element":{"kind":"CLASS","name":"Key","location":{"file":"/Users/me/Documents/Programming/flutter/packages/flutter/lib/src/foundation/key.dart","offset":696,"length":3,"startLine":20,"startColumn":16},"flags":1},"offsets":[1576],"length":3},{"element":{"kind":"PARAMETER","name":"key","location":{"file":"/Users/me/Documents/Programming/myapp/lib/View/FormularyGuide/formulary_view.dart","offset":1580,"length":3,"startLine":32,"startColumn":27},"flags":0,"returnType":"Key"},"offsets":[1580,1622],"length":3},{"element":{"kind":"FIELD","name":"title","location":{"file":"/Users/me/Documents/Programming/myapp/lib/View/FormularyGuide/formulary_view.dart","offset":1644,"length":5,"startLine":34,"startColumn":16},"flags":4,"returnType":"String"},"offsets":[1590,1644],"length":5},{"element":{"kind":"FIELD","name":"user","location":{"file":"/Users/me/Documents/Programming/myapp/lib/View/FormularyGuide/formulary_view.dart","offset":1664,"length":4,"startLine":35,"startColumn":14…
[11:21:44 GMT+0000 (GMT)] [Analyzer] [Info] <== {"event":"analysis.closingLabels","params":{"file":"/Users/me/Documents/Programming/myapp/lib/View/FormularyGuide/formulary_view.dart","labels":[{"offset":4179,"length":1075,"label":"DefaultTabController"},{"offset":4235,"length":1018,"label":"Scaffold"},{"offset":4263,"length":634,"label":"AppBar"},{"offset":4419,"length":293,"label":"<Widget>[]"},{"offset":4443,"length":255,"label":"IconButton"},{"offset":4734,"length":150,"label":"TabBar"},{"offset":4915,"length":327,"label":"TabBarView"},{"offset":5718,"length":1777,"label":"FutureBuilder"},{"offset":5894,"length":153,"label":"Center"},{"offset":6144,"length":1118,"label":"Center"},{"offset":6175,"length":1086,"label":"Container"},{"offset":6268,"length":992,"label":"FlatButton"},{"offset":6313,"length":134,"label":"RoundedRectangleBorder"},{"offset":6530,"length":321,"label":"Padding"},{"offset":6632,"length":218,"label":"Text"},{"offset":6702,"length":147,"label":"TextStyle"},{"offset":6946,"length":290,"label":"MaterialPageRoute"},{"offset":7072,"length":134,"label":"PDFScreen"},{"offset":7637,"length":792,"label":"Row"},{"offset":7759,"length":669,"label":"<Widget>[]"},{"offset":7779,"length":111,"label":"IconButton"},{"offset":7902,"length":120,"label":"IconButton"},{"offset":8034,"length":117,"label":"IconButton"},{"offset":8163,"length":120,"label":"IconButton"},{"offset":8295,"length":122,"label":"IconButton"},{"offset":10258,"length":874,"label":"FlatButton"},{"offset":10285,"length":630,"label":"Container"},{"offset":10404,"length":340,"label":"Padding"},{"offset":10507,"length":224,"label":"Text"},{"offset":10590,"length":140,"label":"TextStyle"},{"offset":10768,"length":136,"label":"BoxDecoration"},{"offset":10807,"length":84,"label":"Border"},{"offset":10982,"length":148,"label":"MaterialPageRoute"},{"offset":11807,"length":2382,"label":"Container"},{"offset":11838,"length":157,"label":"BoxDecoration"},{"offset":11914,"length":80,"label":"Border"},{"offset":12012,"length":2176,"label":"…
[11:21:44 GMT+0000 (GMT)] [Analyzer] [Info] <== {"event":"analysis.folding","params":{"file":"/Users/me/Documents/Programming/myapp/lib/View/FormularyGuide/formulary_view.dart","regions":[{"kind":"CLASS_BODY","offset":1553,"length":244},{"kind":"CLASS_BODY","offset":1933,"length":54119},{"kind":"FUNCTION_BODY","offset":3191,"length":443},{"kind":"FUNCTION_BODY","offset":3727,"length":331},{"kind":"FUNCTION_BODY","offset":4167,"length":1091},{"kind":"INVOCATION","offset":4200,"length":1053},{"kind":"INVOCATION","offset":4244,"length":1008},{"kind":"INVOCATION","offset":4270,"length":626},{"kind":"LITERAL","offset":4428,"length":283},{"kind":"INVOCATION","offset":4454,"length":243},{"kind":"FUNCTION_BODY","offset":4528,"length":152},{"kind":"INVOCATION","offset":4558,"length":103},{"kind":"INVOCATION","offset":4741,"length":142},{"kind":"LITERAL","offset":4748,"length":134},{"kind":"INVOCATION","offset":4926,"length":315},{"kind":"LITERAL","offset":4993,"length":235},{"kind":"FUNCTION_BODY","offset":5311,"length":166},{"kind":"FUNCTION_BODY","offset":5521,"length":140},{"kind":"FUNCTION_BODY","offset":5681,"length":1922},{"kind":"INVOCATION","offset":5736,"length":1758},{"kind":"FUNCTION_BODY","offset":5839,"length":1654},{"kind":"INVOCATION","offset":5905,"length":141},{"kind":"INVOCATION","offset":6151,"length":1110},{"kind":"INVOCATION","offset":6189,"length":1071},{"kind":"INVOCATION","offset":6283,"length":976},{"kind":"INVOCATION","offset":6336,"length":110},{"kind":"INVOCATION","offset":6542,"length":308},{"kind":"INVOCATION","offset":6641,"length":208},{"kind":"INVOCATION","offset":6716,"length":132},{"kind":"INVOCATION","offset":6907,"length":329},{"kind":"INVOCATION","offset":6968,"length":267},{"kind":"FUNCTION_BODY","offset":7036,"length":198},{"kind":"INVOCATION","offset":7086,"length":119},{"kind":"FUNCTION_BODY","offset":7625,"length":808},{"kind":"INVOCATION","offset":7641,"length":787},{"kind":"LITERAL","offset":7768,"length":659},{"kind":"INVOCATION","offset":7790,"length":99},{"kind"…
[11:21:44 GMT+0000 (GMT)] [Analyzer] [Info] <== {"event":"analysis.outline","params":{"file":"/Users/me/Documents/Programming/myapp/lib/View/FormularyGuide/formulary_view.dart","kind":"LIBRARY","outline":{"element":{"kind":"COMPILATION_UNIT","name":"<unit>","location":{"file":"/Users/me/Documents/Programming/myapp/lib/View/FormularyGuide/formulary_view.dart","offset":0,"length":65089,"startLine":1,"startColumn":1},"flags":0},"offset":0,"length":65089,"codeOffset":0,"codeLength":65089,"children":[{"element":{"kind":"CLASS","name":"FormularyGuideView","location":{"file":"/Users/me/Documents/Programming/myapp/lib/View/FormularyGuide/formulary_view.dart","offset":1510,"length":18,"startLine":31,"startColumn":7},"flags":0},"offset":1504,"length":294,"codeOffset":1504,"codeLength":294,"children":[{"element":{"kind":"CONSTRUCTOR","name":"FormularyGuideView","location":{"file":"/Users/me/Documents/Programming/myapp/lib/View/FormularyGuide/formulary_view.dart","offset":1556,"length":18,"startLine":32,"startColumn":3},"flags":0,"parameters":"({Key key, this.title, this.user})"},"offset":1556,"length":71,"codeOffset":1556,"codeLength":71},{"element":{"kind":"FIELD","name":"title","location":{"file":"/Users/me/Documents/Programming/myapp/lib/View/FormularyGuide/formulary_view.dart","offset":1644,"length":5,"startLine":34,"startColumn":16},"flags":4,"returnType":"String"},"offset":1631,"length":19,"codeOffset":1644,"codeLength":5},{"element":{"kind":"FIELD","name":"user","location":{"file":"/Users/me/Documents/Programming/myapp/lib/View/FormularyGuide/formulary_view.dart","offset":1664,"length":4,"startLine":35,"startColumn":14},"flags":4,"returnType":"User"},"offset":1653,"length":16,"codeOffset":1664,"codeLength":4},{"element":{"kind":"FIELD","name":"routeName","location":{"file":"/Users/me/Documents/Programming/myapp/lib/View/FormularyGuide/formulary_view.dart","offset":1692,"length":9,"startLine":36,"startColumn":23},"flags":10,"returnType":"String"},"offs…
[11:21:44 GMT+0000 (GMT)] [Analyzer] [Info] <== {"event":"analysis.occurrences","params":{"file":"/Users/me/Documents/Programming/myapp/lib/View/Home/home_view.dart","occurrences":[{"element":{"kind":"CLASS","name":"HomeView","location":{"file":"/Users/me/Documents/Programming/myapp/lib/View/Home/home_view.dart","offset":785,"length":8,"startLine":19,"startColumn":7},"flags":0},"offsets":[785,821,1002],"length":8},{"element":{"kind":"CLASS","name":"StatefulWidget","location":{"file":"/Users/me/Documents/Programming/flutter/packages/flutter/lib/src/widgets/framework.dart","offset":32706,"length":14,"startLine":787,"startColumn":16},"flags":1},"offsets":[802],"length":14},{"element":{"kind":"CLASS","name":"Key","location":{"file":"/Users/me/Documents/Programming/flutter/packages/flutter/lib/src/foundation/key.dart","offset":696,"length":3,"startLine":20,"startColumn":16},"flags":1},"offsets":[831],"length":3},{"element":{"kind":"PARAMETER","name":"key","location":{"file":"/Users/me/Documents/Programming/myapp/lib/View/Home/home_view.dart","offset":835,"length":3,"startLine":20,"startColumn":17},"flags":0,"returnType":"Key"},"offsets":[835,866],"length":3},{"element":{"kind":"FIELD","name":"title","location":{"file":"/Users/me/Documents/Programming/myapp/lib/View/Home/home_view.dart","offset":888,"length":5,"startLine":22,"startColumn":16},"flags":4,"returnType":"String"},"offsets":[845,888],"length":5},{"element":{"kind":"PARAMETER","name":"key","location":{"file":"/Users/me/Documents/Programming/flutter/packages/flutter/lib/src/widgets/framework.dart","offset":32807,"length":3,"startLine":789,"startColumn":30},"flags":0,"returnType":"Key"},"offsets":[861],"length":3},{"element":{"kind":"CLASS","name":"String","location":{"file":"/Users/me/Documents/Programming/flutter/bin/cache/pkg/sky_engine/lib/core/string.dart","offset":3804,"length":6,"startLine":100,"startColumn":16},"flags":1},"offsets":[881,5243,5411,11107,14065,14793,15075,15485,17045],"le…
[11:21:44 GMT+0000 (GMT)] [Analyzer] [Info] <== {"event":"analysis.closingLabels","params":{"file":"/Users/me/Documents/Programming/myapp/lib/View/Home/home_view.dart","labels":[{"offset":2914,"length":2026,"label":"Scaffold"},{"offset":2942,"length":251,"label":"AppBar"},{"offset":3065,"length":119,"label":"<Widget>[]"},{"offset":3085,"length":89,"label":"IconButton"},{"offset":3206,"length":1362,"label":"Container"},{"offset":3241,"length":66,"label":"BoxDecoration"},{"offset":3430,"length":1137,"label":"BackdropFilter"},{"offset":3541,"length":1024,"label":"Container"},{"offset":3586,"length":522,"label":"BoxDecoration"},{"offset":3637,"length":451,"label":"LinearGradient"},{"offset":3685,"length":223,"label":"<Color>[]"},{"offset":4282,"length":252,"label":"Center"},{"offset":4315,"length":200,"label":"Column"},{"offset":4357,"length":137,"label":"<Widget>[]"},{"offset":5300,"length":85,"label":"SnackBar"},{"offset":5557,"length":4763,"label":"Hero"},{"offset":5610,"length":4709,"label":"FutureBuilder"},{"offset":6074,"length":923,"label":"Row"},{"offset":6251,"length":745,"label":"<Widget>[]"},{"offset":6285,"length":148,"label":"Text"},{"offset":6349,"length":83,"label":"TextStyle"},{"offset":6459,"length":513,"label":"Container"},{"offset":6570,"length":375,"label":"Text"},{"offset":6646,"length":298,"label":"TextStyle"},{"offset":7041,"length":3246,"label":"Column"},{"offset":7062,"length":3224,"label":"<Widget>[]"},{"offset":7090,"length":3177,"label":"SizedBox"},{"offset":7179,"length":3087,"label":"Container"},{"offset":7487,"length":572,"label":"BoxDecoration"},{"offset":7668,"length":142,"label":"Border"},{"offset":7718,"length":91,"label":"BorderSide"},{"offset":8094,"length":2171,"label":"Container"},{"offset":8437,"length":127,"label":"BoxDecoration"},{"offset":8603,"length":1661,"label":"Column"},{"offset":8657,"length":1574,"label":"<Widget>[]"},{"offset":8701,"length":503,"label":"SizedBox"},{"offset":8871,"length":332,"label":"AutoSizeText"},{"offset":9059,"length":143,"label":"Te…
[11:21:44 GMT+0000 (GMT)] [Analyzer] [Info] <== {"event":"analysis.folding","params":{"file":"/Users/me/Documents/Programming/myapp/lib/View/Home/home_view.dart","regions":[{"kind":"CLASS_BODY","offset":818,"length":146},{"kind":"CLASS_BODY","offset":1013,"length":16178},{"kind":"FUNCTION_BODY","offset":1336,"length":456},{"kind":"INVOCATION","offset":1461,"length":160},{"kind":"LITERAL","offset":1523,"length":97},{"kind":"FUNCTION_BODY","offset":1845,"length":3099},{"kind":"INVOCATION","offset":1927,"length":230},{"kind":"FUNCTION_BODY","offset":1958,"length":198},{"kind":"INVOCATION","offset":2399,"length":250},{"kind":"FUNCTION_BODY","offset":2436,"length":212},{"kind":"FUNCTION_BODY","offset":2686,"length":214},{"kind":"INVOCATION","offset":2927,"length":2012},{"kind":"INVOCATION","offset":2953,"length":239},{"kind":"LITERAL","offset":3074,"length":109},{"kind":"INVOCATION","offset":3096,"length":77},{"kind":"INVOCATION","offset":3220,"length":1347},{"kind":"INVOCATION","offset":3259,"length":47},{"kind":"INVOCATION","offset":3449,"length":1117},{"kind":"INVOCATION","offset":3555,"length":1009},{"kind":"INVOCATION","offset":3604,"length":503},{"kind":"INVOCATION","offset":3656,"length":431},{"kind":"LITERAL","offset":3693,"length":214},{"kind":"INVOCATION","offset":4289,"length":244},{"kind":"INVOCATION","offset":4326,"length":188},{"kind":"LITERAL","offset":4366,"length":127},{"kind":"FUNCTION_BODY","offset":4984,"length":57},{"kind":"FUNCTION_BODY","offset":5067,"length":152},{"kind":"FUNCTION_BODY","offset":5257,"length":133},{"kind":"INVOCATION","offset":5300,"length":85},{"kind":"INVOCATION","offset":5313,"length":71},{"kind":"FUNCTION_BODY","offset":5427,"length":104},{"kind":"FUNCTION_BODY","offset":5545,"length":4779},{"kind":"INVOCATION","offset":5566,"length":4753},{"kind":"INVOCATION","offset":5634,"length":4684},{"kind":"FUNCTION_BODY","offset":5733,"length":4584},{"kind":"FUNCTION_BODY","offset":6048,"length":967},{"kind":"INVOCATION","offset":6082,"length":914},{"kind":"LITERAL","of…
[11:21:44 GMT+0000 (GMT)] [Analyzer] [Info] <== {"event":"analysis.outline","params":{"file":"/Users/me/Documents/Programming/myapp/lib/View/Home/home_view.dart","kind":"LIBRARY","outline":{"element":{"kind":"COMPILATION_UNIT","name":"<unit>","location":{"file":"/Users/me/Documents/Programming/myapp/lib/View/Home/home_view.dart","offset":0,"length":17193,"startLine":1,"startColumn":1},"flags":0},"offset":0,"length":17193,"codeOffset":0,"codeLength":17193,"children":[{"element":{"kind":"CLASS","name":"HomeView","location":{"file":"/Users/me/Documents/Programming/myapp/lib/View/Home/home_view.dart","offset":785,"length":8,"startLine":19,"startColumn":7},"flags":0},"offset":779,"length":186,"codeOffset":779,"codeLength":186,"children":[{"element":{"kind":"CONSTRUCTOR","name":"HomeView","location":{"file":"/Users/me/Documents/Programming/myapp/lib/View/Home/home_view.dart","offset":821,"length":8,"startLine":20,"startColumn":3},"flags":0,"parameters":"({Key key, this.title})"},"offset":821,"length":50,"codeOffset":821,"codeLength":50},{"element":{"kind":"FIELD","name":"title","location":{"file":"/Users/me/Documents/Programming/myapp/lib/View/Home/home_view.dart","offset":888,"length":5,"startLine":22,"startColumn":16},"flags":4,"returnType":"String"},"offset":875,"length":19,"codeOffset":888,"codeLength":5},{"element":{"kind":"METHOD","name":"createState","location":{"file":"/Users/me/Documents/Programming/myapp/lib/View/Home/home_view.dart","offset":925,"length":11,"startLine":25,"startColumn":18},"flags":0,"parameters":"()","returnType":"_HomePageState"},"offset":898,"length":65,"codeOffset":910,"codeLength":53}]},{"element":{"kind":"CLASS","name":"_HomePageState","location":{"file":"/Users/me/Documents/Programming/myapp/lib/View/Home/home_view.dart","offset":973,"length":14,"startLine":28,"startColumn":7},"flags":16},"offset":967,"length":16225,"codeOffset":967,"codeLength":16225,"children":[{"element":{"kind":"FIELD","name":"_ctx","location":{"fil…
[11:22:17 GMT+0000 (GMT)] [FlutterRun] [Error] ProcessException: Process "/usr/bin/xcrun" exited abnormally:
com.company.myapp.OneSignalNotificationServiceExtension: -1

An error was encountered processing the command (domain=FBSOpenApplicationServiceErrorDomain, code=1):
The request to open "com.company.myapp.OneSignalNotificationServiceExtension" failed.
The request was denied by service delegate (SBMainWorkspace) for reason: NotFound ("Application "com.company.myapp.OneSignalNotificationServiceExtension" is unknown to FrontBoard").
Underlying error (domain=FBSOpenApplicationErrorDomain, code=4):
	The operation couldn’t be completed. Application "com.company.myapp.OneSignalNotificationServiceExtension" is unknown to FrontBoard.
	Application "com.company.myapp.OneSignalNotificationServiceExtension" is unknown to FrontBoard.
  Command: /usr/bin/xcrun simctl launch F3905523-374A-44FC-849D-F8539EDBF038 com.company.myapp.OneSignalNotificationServiceExtension --enable-dart-profiling --enable-checked-mode --observatory-port=0
[11:22:17 GMT+0000 (GMT)] [General] [Error] [FlutterRun] ProcessException: Process "/usr/bin/xcrun" exited abnormally:
com.company.myapp.OneSignalNotificationServiceExtension: -1

An error was encountered processing the command (domain=FBSOpenApplicationServiceErrorDomain, code=1):
The request to open "com.company.myapp.OneSignalNotificationServiceExtension" failed.
The request was denied by service delegate (SBMainWorkspace) for reason: NotFound ("Application "com.company.myapp.OneSignalNotificationServiceExtension" is unknown to FrontBoard").
Underlying error (domain=FBSOpenApplicationErrorDomain, code=4):
	The operation couldn’t be completed. Application "com.company.myapp.OneSignalNotificationServiceExtension" is unknown to FrontBoard.
	Application "com.company.myapp.OneSignalNotificationServiceExtension" is unknown to FrontBoard.
  Command: /usr/bin/xcrun simctl launch F3905523-374A-44FC-849D-F8539EDBF038 com.company.myapp.OneSignalNotificationServiceExtension --enable-dart-profiling --enable-checked-mode --observatory-port=0
[11:22:17 GMT+0000 (GMT)] [FlutterRun] [Error] 
[11:22:17 GMT+0000 (GMT)] [General] [Error] [FlutterRun]
[11:22:17 GMT+0000 (GMT)] [FlutterRun] [Error] Error launching application on iPhone XR.
[11:22:17 GMT+0000 (GMT)] [General] [Error] [FlutterRun] Error launching application on iPhone XR.
[11:22:17 GMT+0000 (GMT)] [FlutterRun] [Info] <== [{"event":"app.stop","params":{"appId":"440b4734-807f-4a5c-abd7-3a0dbccabce8"}}]
[11:22:17 GMT+0000 (GMT)] [Observatory] [Info] Process exited (sigterm)
[11:22:17 GMT+0000 (GMT)] [Observatory] [Info] Disconnect requested!
[11:22:17 GMT+0000 (GMT)] [Observatory] [Info] TERM: Going to terminate with SIGINT...
[11:22:17 GMT+0000 (GMT)] [Observatory] [Info] TERM: Removing all stored data...
[11:22:17 GMT+0000 (GMT)] [Observatory] [Info] TERM: Waiting for process to finish...
[11:22:17 GMT+0000 (GMT)] [Observatory] [Info] TERM: Disconnecting...
Wed Jan 30 2019 [11:22:20 GMT+0000 (GMT)] Log file ended

App crashes on notification receive when app is closed

Everytime i get a notification on android when the app is closed the device displays that the app is crashed and i get the following logs:

08-14 15:56:13.753 12918-12918/? W/SELinux: SELinux selinux_android_compute_policy_index : Policy Index[2],  Con:u:r:zygote:s0 SPD:SEPF_SECMOBILE_7.0_0006 RAM:SEPF_SECMOBILE_7.0_0009, [-1 -1 -9 -1 0 1]
08-14 15:56:13.756 12918-12918/? I/SELinux: SELinux: seapp_context_lookup: seinfo=untrusted, level=s0:c512,c768, pkgname=com.pitahaya.milagritoapp 
08-14 15:56:13.762 12918-12918/? I/art: Late-enabling -Xcheck:jni
08-14 15:56:13.793 12918-12918/? D/TimaKeyStoreProvider: TimaSignature is unavailable
08-14 15:56:13.794 12918-12918/? D/ActivityThread: Added TimaKeyStore provider
08-14 15:56:13.846 12918-12918/com.pitahaya.milagritoapp D/ContextRelationMgrBrdg: loadKlass() : caller=com.samsung.android.bridge.multiscreen.common.ContextRelationManagerBridge.<clinit>:28 android.app.LoadedApk.makeApplication:840 
08-14 15:56:13.881 12918-12918/com.pitahaya.milagritoapp I/art: Rejecting re-init on previously-failed class java.lang.Class<com.google.firebase.messaging.RemoteMessage>: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/internal/zzbgl;
08-14 15:56:13.882 12918-12918/com.pitahaya.milagritoapp I/art:     at java.lang.Class java.lang.Class.classForName!(java.lang.String, boolean, java.lang.ClassLoader) (Class.java:-2)
        at java.lang.Class java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (Class.java:400)
        at java.lang.Class java.lang.Class.forName(java.lang.String) (Class.java:326)
        at boolean com.google.firebase.iid.FirebaseInstanceId.zzm() ((null):-1)
        at boolean com.google.firebase.iid.FirebaseInstanceId.zzl() ((null):-1)
        at void com.google.firebase.iid.FirebaseInstanceId.<init>(com.google.firebase.FirebaseApp, com.google.firebase.iid.zzah) ((null):-1)
        at void com.google.firebase.iid.FirebaseInstanceId.<init>(com.google.firebase.FirebaseApp) ((null):-1)
        at java.lang.Object com.google.firebase.iid.zzai.create(com.google.firebase.components.ComponentContainer) ((null):-1)
        at java.lang.Object com.google.firebase.components.zzh.zza(com.google.firebase.components.ComponentFactory, com.google.firebase.components.ComponentContainer) (SourceFile:28)
        at java.lang.Object com.google.firebase.components.zzi.get() ((null):-1)
        at java.lang.Object com.google.firebase.components.zzh.get() (SourceFile:39)
        at java.lang.Object com.google.firebase.components.ComponentContainer$$CC.get(com.google.firebase.components.ComponentContainer, java.lang.Class) ((null):15)
        at java.lang.Object com.google.firebase.components.zzd.get(java.lang.Class) (SourceFile:-1)
        at void com.google.firebase.components.zzd.zza(boolean) (SourceFile:68)
        at void com.google.firebase.FirebaseApp.zze() (SourceFile:703)
        at com.google.firebase.FirebaseApp com.google.firebase.FirebaseApp.initializeApp(android.content.Context, com.google.firebase.FirebaseOptions, java.lang.String) (SourceFile:328)
        at com.google.firebase.FirebaseApp com.google.firebase.FirebaseApp.initializeApp(android.content.Context, com.google.firebase.FirebaseOptions) (SourceFile:294)
        at com.google.firebase.FirebaseApp com.google.firebase.FirebaseApp.initializeApp(android.content.Context) (SourceFile:281)
        at boolean com.google.firebase.provider.FirebaseInitProvider.onCreate() (SourceFile:37)
        at void android.content.ContentProvider.attachInfo(android.content.Context, android.content.pm.ProviderInfo, boolean) (ContentProvider.java:1758)
        at void android.content.ContentProvider.attachInfo(android.content.Context, android.content.pm.ProviderInfo) (ContentProvider.java:1733)
        at void com.google.firebase.provider.FirebaseInitProvider.attachInfo(android.content.Context, android.content.pm.ProviderInfo) (SourceFile:31)
        at android.app.IActivityManager$ContentProviderHolder android.app.ActivityThread.installProvider(android.content.Context, android.app.IActivityManager$ContentProviderHolder, android.content.pm.ProviderInfo, boolean, boolean, boolean) (ActivityThread.java:6335)
        at void android.app.ActivityThread.installContentProviders(android.content.Context, java.util.List) (ActivityThread.java:5927)
        at void android.app.ActivityThread.handleBindApplication(android.app.ActivityThread$AppBindData) (ActivityThread.java:5866)
        at void android.app.ActivityThread.-wrap3(android.app.ActivityThread, android.app.ActivityThread$AppBindData) (ActivityThread.java:-1)
        at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1703)
        at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
        at void android.os.Looper.loop() (Looper.java:154)
        at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6692)
        at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2)
        at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:1468)
        at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:1358)
    Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.internal.zzbgl" on path: DexPathList[[zip file "/data/app/com.pitahaya.milagritoapp-1/base.apk"],nativeLibraryDirectories=[/data/app/com.pitahaya.milagritoapp-1/lib/arm64, /data/app/com.pitahaya.milagritoapp-1/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]]
        at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:56)
        at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:380)
        at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
        at java.lang.Class java.lang.Class.classForName!(java.lang.String, boolean, java.lang.ClassLoader) (Class.java:-2)
        at java.lang.Class java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (Class.java:400)
        at java.lang.Class java.lang.Class.forName(java.lang.String) (Class.java:326)
        at boolean com.google.firebase.iid.FirebaseInstanceId.zzm() ((null):-1)
        at boolean com.google.firebase.iid.FirebaseInstanceId.zzl() ((null):-1)
        at void com.google.firebase.iid.FirebaseInstanceId.<init>(com.google.firebase.FirebaseApp, com.google.firebase.iid.zzah) ((null):-1)
        at void com.google.firebase.iid.FirebaseInstanceId.<init>(com.google.firebase.FirebaseApp) ((null):-1)
        at java.lang.Object com.google.firebase.iid.zzai.create(com.google.firebase.components.ComponentContainer) ((null):-1)
        at java.lang.Object com.google.firebase.components.zzh.zza(com.google.firebase.components.ComponentFactory, com.google.firebase.components.ComponentContainer) (SourceFile:28)
        at java.lang.Object com.google.firebase.components.zzi.get() ((null):-1)
        at java.lang.Object com.google.firebase.components.zzh.get() (SourceFile:39)
        at java.lang.Object com.google.firebase.components.ComponentContainer$$CC.get(com.google.firebase.components.ComponentContainer, java.lang.Class) ((null):15)
        at java.lang.Object com.google.firebase.components.zzd.get(java.lang.Class) (SourceFile:-1)
        at void com.google.firebase.components.zzd.zza(boolean) (SourceFile:68)
        at void com.google.firebase.FirebaseApp.zze() (SourceFile:703)
        at com.google.firebase.FirebaseApp com.google.firebase.FirebaseApp.initializeApp(android.content.Context, com.google.firebase.FirebaseOptions, java.lang.String) (SourceFile:328)
        at com.google.firebase.FirebaseApp com.google.firebase.FirebaseApp.initializeApp(android.content.Context, com.google.firebase.FirebaseOptions) (SourceFile:294)
        at com.google.firebase.FirebaseApp com.google.firebase.FirebaseApp.initializeApp(android.content.Context) (SourceFile:281)
        at boolean com.google.firebase.provider.FirebaseInitProvider.onCreate() (SourceFile:37)
        at void android.content.ContentProvider.attachInfo(android.content.Context, android.content.pm.ProviderInfo, boolean) (ContentProvider.java:1758)
        at void android.content.ContentProvider.attachInfo(android.content.Context, android.content.pm.ProviderInfo) (ContentProvider.java:1733)
        at void com.google.firebase.provider.FirebaseInitProvider.attachInfo(android.content.Context, android.content.pm.ProviderInfo) (SourceFile:31)
        at android.app.IActivityManager$ContentProviderHolder android.app.ActivityThread.installProvider(android.content.Context, android.app.IActivityManager$ContentProviderHolder, android.content.pm.ProviderInfo, boolean, boolean, boolean) (ActivityThread.java:6335)
        at void android.app.ActivityThread.installContentProviders(android.content.Context, java.util.List) (ActivityThread.java:5927)
        at void android.app.ActivityThread.handleBindApplication(android.app.ActivityThread$AppBindData) (ActivityThread.java:5866)
        at void android.app.ActivityThread.-wrap3(android.app.ActivityThread, android.app.ActivityThread$AppBindData) (ActivityThread.java:-1)
        at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1703)
        at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
        at void android.os.Looper.loop() (Looper.java:154)
        at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6692)
        at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2)
        at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:1468)
        at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:1358)
08-14 15:56:13.892 12918-12918/com.pitahaya.milagritoapp V/FA: Registered activity lifecycle callback
08-14 15:56:13.894 12918-12918/com.pitahaya.milagritoapp D/FirebaseApp: com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization.
08-14 15:56:13.894 12918-12918/com.pitahaya.milagritoapp I/FirebaseInitProvider: FirebaseApp initialization successful
08-14 15:56:13.921 12918-12945/com.pitahaya.milagritoapp D/NetworkSecurityConfig: No Network Security Config specified, using platform default
08-14 15:56:13.931 12918-12945/com.pitahaya.milagritoapp I/System.out: (HTTPLog)-Static: isSBSettingEnabled false
    (HTTPLog)-Static: isSBSettingEnabled false
08-14 15:56:13.980 12918-12944/com.pitahaya.milagritoapp V/FA: Collection enabled
08-14 15:56:13.981 12918-12944/com.pitahaya.milagritoapp V/FA: App package, google app id: com.pitahaya.milagritoapp, 1:531101699633:android:c6c75387021e40ec
08-14 15:56:13.983 12918-12944/com.pitahaya.milagritoapp I/FA: App measurement is starting up, version: 12780
    To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
08-14 15:56:13.984 12918-12944/com.pitahaya.milagritoapp I/FA: To enable faster debug mode event logging run:
      adb shell setprop debug.firebase.analytics.app com.pitahaya.milagritoapp
08-14 15:56:13.984 12918-12944/com.pitahaya.milagritoapp D/FA: Debug-level message logging enabled
08-14 15:56:14.063 12918-12944/com.pitahaya.milagritoapp V/FA: Connecting to remote service
08-14 15:56:14.090 12918-12944/com.pitahaya.milagritoapp V/FA: Connection attempt already in progress
08-14 15:56:14.194 12918-12918/com.pitahaya.milagritoapp I/art: Rejecting re-init on previously-failed class java.lang.Class<com.google.firebase.messaging.RemoteMessage>: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/internal/zzbgl;
        at java.lang.Class java.lang.Class.classForName!(java.lang.String, boolean, java.lang.ClassLoader) (Class.java:-2)
        at java.lang.Class java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (Class.java:400)
        at java.lang.Class java.lang.Class.forName(java.lang.String) (Class.java:326)
        at boolean com.google.firebase.iid.FirebaseInstanceId.zzm() ((null):-1)
        at boolean com.google.firebase.iid.FirebaseInstanceId.zzl() ((null):-1)
        at void com.google.firebase.iid.FirebaseInstanceId.<init>(com.google.firebase.FirebaseApp, com.google.firebase.iid.zzah) ((null):-1)
08-14 15:56:14.195 12918-12918/com.pitahaya.milagritoapp I/art:     at void com.google.firebase.iid.FirebaseInstanceId.<init>(com.google.firebase.FirebaseApp) ((null):-1)
        at java.lang.Object com.google.firebase.iid.zzai.create(com.google.firebase.components.ComponentContainer) ((null):-1)
        at java.lang.Object com.google.firebase.components.zzh.zza(com.google.firebase.components.ComponentFactory, com.google.firebase.components.ComponentContainer) (SourceFile:28)
        at java.lang.Object com.google.firebase.components.zzi.get() ((null):-1)
        at java.lang.Object com.google.firebase.components.zzh.get() (SourceFile:39)
        at java.lang.Object com.google.firebase.components.ComponentContainer$$CC.get(com.google.firebase.components.ComponentContainer, java.lang.Class) ((null):15)
        at java.lang.Object com.google.firebase.components.zzd.get(java.lang.Class) (SourceFile:-1)
        at void com.google.firebase.components.zzd.zza(boolean) (SourceFile:68)
        at void com.google.firebase.FirebaseApp.zze() (SourceFile:703)
        at com.google.firebase.FirebaseApp com.google.firebase.FirebaseApp.initializeApp(android.content.Context, com.google.firebase.FirebaseOptions, java.lang.String) (SourceFile:328)
        at com.google.firebase.FirebaseApp com.google.firebase.FirebaseApp.initializeApp(android.content.Context, com.google.firebase.FirebaseOptions) (SourceFile:294)
        at com.google.firebase.FirebaseApp com.google.firebase.FirebaseApp.initializeApp(android.content.Context) (SourceFile:281)
        at boolean com.google.firebase.provider.FirebaseInitProvider.onCreate() (SourceFile:37)
        at void android.content.ContentProvider.attachInfo(android.content.Context, android.content.pm.ProviderInfo, boolean) (ContentProvider.java:1758)
        at void android.content.ContentProvider.attachInfo(android.content.Context, android.content.pm.ProviderInfo) (ContentProvider.java:1733)
        at void com.google.firebase.provider.FirebaseInitProvider.attachInfo(android.content.Context, android.content.pm.ProviderInfo) (SourceFile:31)
        at android.app.IActivityManager$ContentProviderHolder android.app.ActivityThread.installProvider(android.content.Context, android.app.IActivityManager$ContentProviderHolder, android.content.pm.ProviderInfo, boolean, boolean, boolean) (ActivityThread.java:6335)
        at void android.app.ActivityThread.installContentProviders(android.content.Context, java.util.List) (ActivityThread.java:5927)
        at void android.app.ActivityThread.handleBindApplication(android.app.ActivityThread$AppBindData) (ActivityThread.java:5866)
        at void android.app.ActivityThread.-wrap3(android.app.ActivityThread, android.app.ActivityThread$AppBindData) (ActivityThread.java:-1)
        at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1703)
        at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
        at void android.os.Looper.loop() (Looper.java:154)
        at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6692)
        at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2)
        at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:1468)
        at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:1358)
    Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.internal.zzbgl" on path: DexPathList[[zip file "/data/app/com.pitahaya.milagritoapp-1/base.apk"],nativeLibraryDirectories=[/data/app/com.pitahaya.milagritoapp-1/lib/arm64, /data/app/com.pitahaya.milagritoapp-1/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]]
        at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:56)
        at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:380)
        at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
        at java.lang.Class java.lang.Class.classForName!(java.lang.String, boolean, java.lang.ClassLoader) (Class.java:-2)
        at java.lang.Class java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (Class.java:400)
        at java.lang.Class java.lang.Class.forName(java.lang.String) (Class.java:326)
        at boolean com.google.firebase.iid.FirebaseInstanceId.zzm() ((null):-1)
        at boolean com.google.firebase.iid.FirebaseInstanceId.zzl() ((null):-1)
        at void com.google.firebase.iid.FirebaseInstanceId.<init>(com.google.firebase.FirebaseApp, com.google.firebase.iid.zzah) ((null):-1)
        at void com.google.firebase.iid.FirebaseInstanceId.<init>(com.google.firebase.FirebaseApp) ((null):-1)
        at java.lang.Object com.google.firebase.iid.zzai.create(com.google.firebase.components.ComponentContainer) ((null):-1)
        at java.lang.Object com.google.firebase.components.zzh.zza(com.google.firebase.components.ComponentFactory, com.google.firebase.components.ComponentContainer) (SourceFile:28)
        at java.lang.Object com.google.firebase.components.zzi.get() ((null):-1)
        at java.lang.Object com.google.firebase.components.zzh.get() (SourceFile:39)
        at java.lang.Object com.google.firebase.components.ComponentContainer$$CC.get(com.google.firebase.components.ComponentContainer, java.lang.Class) ((null):15)
        at java.lang.Object com.google.firebase.components.zzd.get(java.lang.Class) (SourceFile:-1)
        at void com.google.firebase.components.zzd.zza(boolean) (SourceFile:68)
        at void com.google.firebase.FirebaseApp.zze() (SourceFile:703)
        at com.google.firebase.FirebaseApp com.google.firebase.FirebaseApp.initializeApp(android.content.Context, com.google.firebase.FirebaseOptions, java.lang.String) (SourceFile:328)
        at com.google.firebase.FirebaseApp com.google.firebase.FirebaseApp.initializeApp(android.content.Context, com.google.firebase.FirebaseOptions) (SourceFile:294)
        at com.google.firebase.FirebaseApp com.google.firebase.FirebaseApp.initializeApp(android.content.Context) (SourceFile:281)
        at boolean com.google.firebase.provider.FirebaseInitProvider.onCreate() (SourceFile:37)
        at void android.content.ContentProvider.attachInfo(android.content.Context, android.content.pm.ProviderInfo, boolean) (ContentProvider.java:1758)
        at void android.content.ContentProvider.attachInfo(android.content.Context, android.content.pm.ProviderInfo) (ContentProvider.java:1733)
        at void com.google.firebase.provider.FirebaseInitProvider.attachInfo(android.content.Context, android.content.pm.ProviderInfo) (SourceFile:31)
        at android.app.IActivityManager$ContentProviderHolder android.app.ActivityThread.installProvider(android.content.Context, android.app.IActivityManager$ContentProviderHolder, android.content.pm.ProviderInfo, boolean, boolean, boolean) (ActivityThread.java:6335)
        at void android.app.ActivityThread.installContentProviders(android.content.Context, java.util.List) (ActivityThread.java:5927)
        at void android.app.ActivityThread.handleBindApplication(android.app.ActivityThread$AppBindData) (ActivityThread.java:5866)
        at void android.app.ActivityThread.-wrap3(android.app.ActivityThread, android.app.ActivityThread$AppBindData) (ActivityThread.java:-1)
        at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1703)
        at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
        at void android.os.Looper.loop() (Looper.java:154)
        at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6692)
        at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2)
        at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:1468)
        at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:1358)
08-14 15:56:14.205 12918-12918/com.pitahaya.milagritoapp I/art: Rejecting re-init on previously-failed class java.lang.Class<com.google.firebase.messaging.RemoteMessage>: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/internal/zzbgl;
        at java.lang.Class java.lang.Class.classForName!(java.lang.String, boolean, java.lang.ClassLoader) (Class.java:-2)
        at java.lang.Class java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (Class.java:400)
        at java.lang.Class java.lang.Class.forName(java.lang.String) (Class.java:326)
        at boolean com.google.firebase.iid.FirebaseInstanceId.zzm() ((null):-1)
        at boolean com.google.firebase.iid.FirebaseInstanceId.zzl() ((null):-1)
        at void com.google.firebase.iid.FirebaseInstanceId.<init>(com.google.firebase.FirebaseApp, com.google.firebase.iid.zzah) ((null):-1)
        at void com.google.firebase.iid.FirebaseInstanceId.<init>(com.google.firebase.FirebaseApp) ((null):-1)
        at java.lang.Object com.google.firebase.iid.zzai.create(com.google.firebase.components.ComponentContainer) ((null):-1)
        at java.lang.Object com.google.firebase.components.zzh.zza(com.google.firebase.components.ComponentFactory, com.google.firebase.components.ComponentContainer) (SourceFile:28)
        at java.lang.Object com.google.firebase.components.zzi.get() ((null):-1)
        at java.lang.Object com.google.firebase.components.zzh.get() (SourceFile:39)
        at java.lang.Object com.google.firebase.components.ComponentContainer$$CC.get(com.google.firebase.components.ComponentContainer, java.lang.Class) ((null):15)
        at java.lang.Object com.google.firebase.components.zzd.get(java.lang.Class) (SourceFile:-1)
        at void com.google.firebase.components.zzd.zza(boolean) (SourceFile:68)
        at void com.google.firebase.FirebaseApp.zze() (SourceFile:703)
        at com.google.firebase.FirebaseApp com.google.firebase.FirebaseApp.initializeApp(android.content.Context, com.google.firebase.FirebaseOptions, java.lang.String) (SourceFile:328)
        at com.google.firebase.FirebaseApp com.google.firebase.FirebaseApp.initializeApp(android.content.Context, com.google.firebase.FirebaseOptions) (SourceFile:294)
        at com.google.firebase.FirebaseApp com.google.firebase.FirebaseApp.initializeApp(android.content.Context) (SourceFile:281)
        at boolean com.google.firebase.provider.FirebaseInitProvider.onCreate() (SourceFile:37)
        at void android.content.ContentProvider.attachInfo(android.content.Context, android.content.pm.ProviderInfo, boolean) (ContentProvider.java:1758)
        at void android.content.ContentProvider.attachInfo(android.content.Context, android.content.pm.ProviderInfo) (ContentProvider.java:1733)
        at void com.google.firebase.provider.FirebaseInitProvider.attachInfo(android.content.Context, android.content.pm.ProviderInfo) (SourceFile:31)
        at android.app.IActivityManager$ContentProviderHolder android.app.ActivityThread.installProvider(android.content.Context, android.app.IActivityManager$ContentProviderHolder, android.content.pm.ProviderInfo, boolean, boolean, boolean) (ActivityThread.java:6335)
        at void android.app.ActivityThread.installContentProviders(android.content.Context, java.util.List) (ActivityThread.java:5927)
        at void android.app.ActivityThread.handleBindApplication(android.app.ActivityThread$AppBindData) (ActivityThread.java:5866)
        at void android.app.ActivityThread.-wrap3(android.app.ActivityThread, android.app.ActivityThread$AppBindData) (ActivityThread.java:-1)
        at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1703)
        at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
        at void android.os.Looper.loop() (Looper.java:154)
        at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6692)
        at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2)
        at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:1468)
        at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:1358)
    Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.internal.zzbgl" on path: DexPathList[[zip file "/data/app/com.pitahaya.milagritoapp-1/base.apk"],nativeLibraryDirectories=[/data/app/com.pitahaya.milagritoapp-1/lib/arm64, /data/app/com.pitahaya.milagritoapp-1/base.apk!/lib/arm64-v8a, /system/lib64, /vendor/lib64]]
        at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:56)
        at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:380)
        at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
        at java.lang.Class java.lang.Class.classForName!(java.lang.String, boolean, java.lang.ClassLoader) (Class.java:-2)
        at java.lang.Class java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (Class.java:400)
        at java.lang.Class java.lang.Class.forName(java.lang.String) (Class.java:326)
        at boolean com.google.firebase.iid.FirebaseInstanceId.zzm() ((null):-1)
        at boolean com.google.firebase.iid.FirebaseInstanceId.zzl() ((null):-1)
        at void com.google.firebase.iid.FirebaseInstanceId.<init>(com.google.firebase.FirebaseApp, com.google.firebase.iid.zzah) ((null):-1)
        at void com.google.firebase.iid.FirebaseInstanceId.<init>(com.google.firebase.FirebaseApp) ((null):-1)
        at java.lang.Object com.google.firebase.iid.zzai.create(com.google.firebase.components.ComponentContainer) ((null):-1)
        at java.lang.Object com.google.firebase.components.zzh.zza(com.google.firebase.components.ComponentFactory, com.google.firebase.components.ComponentContainer) (SourceFile:28)
        at java.lang.Object com.google.firebase.components.zzi.get() ((null):-1)
        at java.lang.Object com.google.firebase.components.zzh.get() (SourceFile:39)
        at java.lang.Object com.google.firebase.components.ComponentContainer$$CC.get(com.google.firebase.components.ComponentContainer, java.lang.Class) ((null):15)
        at java.lang.Object com.google.firebase.components.zzd.get(java.lang.Class) (SourceFile:-1)
        at void com.google.firebase.components.zzd.zza(boolean) (SourceFile:68)
        at void com.google.firebase.FirebaseApp.zze() (SourceFile:703)
        at com.google.firebase.FirebaseApp com.google.firebase.FirebaseApp.initializeApp(android.content.Context, com.google.firebase.FirebaseOptions, java.lang.String) (SourceFile:328)
        at com.google.firebase.FirebaseApp com.google.firebase.FirebaseApp.initializeApp(android.content.Context, com.google.firebase.FirebaseOptions) (SourceFile:294)
        at com.google.firebase.FirebaseApp com.google.firebase.FirebaseApp.initializeApp(android.content.Context) (SourceFile:281)
        at boolean com.google.firebase.provider.FirebaseInitProvider.onCreate() (SourceFile:37)
        at void android.content.ContentProvider.attachInfo(android.content.Context, android.content.pm.ProviderInfo, boolean) (ContentProvider.java:1758)
        at void android.content.ContentProvider.attachInfo(android.content.Context, android.content.pm.ProviderInfo) (ContentProvider.java:1733)
        at void com.google.firebase.provider.FirebaseInitProvider.attachInfo(android.content.Context, android.content.pm.ProviderInfo) (SourceFile:31)
        at android.app.IActivityManager$ContentProviderHolder android.app.ActivityThread.installProvider(android.content.Context, android.app.IActivityManager$ContentProviderHolder, android.content.pm.ProviderInfo, boolean, boolean, boolean) (ActivityThread.java:6335)
        at void android.app.ActivityThread.installContentProviders(android.content.Context, java.util.List) (ActivityThread.java:5927)
        at void android.app.ActivityThread.handleBindApplication(android.app.ActivityThread$AppBindData) (ActivityThread.java:5866)
        at void android.app.ActivityThread.-wrap3(android.app.ActivityThread, android.app.ActivityThread$AppBindData) (ActivityThread.java:-1)
        at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1703)
        at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
        at void android.os.Looper.loop() (Looper.java:154)
        at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6692)
        at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2)
        at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:1468)
        at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:1358)
08-14 15:56:14.210 12918-12962/com.pitahaya.milagritoapp E/AndroidRuntime: FATAL EXCEPTION: Firebase-FirebaseMessagingService
    Process: com.pitahaya.milagritoapp, PID: 12918
    java.lang.AbstractMethodError: abstract method "void com.google.firebase.iid.zzb.zzd(android.content.Intent)"
        at com.google.firebase.iid.zzc.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
        at com.google.android.gms.common.util.concurrent.zza.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:762)

i'm using these plugins:

  cupertino_icons: ^0.1.0
  flutter_facebook_login: ^1.1.0
  url_launcher: ^3.0.0
  firebase_auth: ^0.5.18
  firebase_storage: ^1.0.1
  cloud_firestore: ^0.7.4
  qr_flutter: ^1.1.1
  intl: ^0.15.4
  transparent_image: ^0.1.0
  shared_preferences: ^0.4.2
  location: 1.2.0
  onesignal: 1.0.1

and have these dependencies in my app.gradle

dependencies {
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.1'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
    implementation "com.google.android.gms:play-services-location:15.0.1"
    implementation 'com.android.support:multidex:1.0.3'
}
apply plugin: 'com.google.gms.google-services'

[Flutter] - Crash app on Android when get `permissionSubscriptionState` - Failed to handle method call NullPointerException: Attempt to invoke virtual method

I got this error, not sure how to fix it:

I/flutter (18349): [PUSH NOTIFICATION] Getting permissionSubscriptionState
E/MethodChannel#OneSignal(18349): Failed to handle method call
E/MethodChannel#OneSignal(18349): java.lang.NullPointerException: Attempt to invoke virtual method 'com.onesignal.OSSubscriptionState com.onesignal.OSPermissionSubscriptionState.getSubscriptionStatus()' on a null object reference
E/MethodChannel#OneSignal(18349): 	at com.onesignal.flutter.OneSignalSerializer.convertPermissionSubscriptionStateToMap(OneSignalSerializer.java:47)
E/MethodChannel#OneSignal(18349): 	at com.onesignal.flutter.OneSignalPlugin.getPermissionSubscriptionState(OneSignalPlugin.java:167)
E/MethodChannel#OneSignal(18349): 	at com.onesignal.flutter.OneSignalPlugin.onMethodCall(OneSignalPlugin.java:76)
E/MethodChannel#OneSignal(18349): 	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:200)
E/MethodChannel#OneSignal(18349): 	at io.flutter.view.FlutterNativeView.handlePlatformMessage(FlutterNativeView.java:163)
E/MethodChannel#OneSignal(18349): 	at android.os.MessageQueue.nativePollOnce(Native Method)
E/MethodChannel#OneSignal(18349): 	at android.os.MessageQueue.next(MessageQueue.java:325)
E/MethodChannel#OneSignal(18349): 	at android.os.Looper.loop(Looper.java:142)
E/MethodChannel#OneSignal(18349): 	at android.app.ActivityThread.main(ActivityThread.java:6494)
E/MethodChannel#OneSignal(18349): 	at java.lang.reflect.Method.invoke(Native Method)
E/MethodChannel#OneSignal(18349): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
E/MethodChannel#OneSignal(18349): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)

Please check!

Xcode linker error on Archive

Hi, I'm having issues when I'm trying to Archive my project (preparing for App Store submit). Xcode throws a linker error. When I Build the project, it shows as a warning and the build is OK. But when I try to Archive, it becomes an error and I can't make an Archive.

Message

Ld /Users/rgb/Library/Developer/Xcode/DerivedData/Runner-bfsbdjyhevoadldwunsvgeguxclc/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/OneSignalNotificationServiceExtension.appex/OneSignalNotificationServiceExtension normal arm64
    cd /Users/rgb/Repositories/cadsys_member_app_flutter/ios
    export IPHONEOS_DEPLOYMENT_TARGET=12.1
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk -L/Users/rgb/Library/Developer/Xcode/DerivedData/Runner-bfsbdjyhevoadldwunsvgeguxclc/Build/Intermediates.noindex/ArchiveIntermediates/Runner/BuildProductsPath/Release-iphoneos -L/Users/rgb/Library/Developer/Xcode/DerivedData/Runner-bfsbdjyhevoadldwunsvgeguxclc/Build/Intermediates.noindex/ArchiveIntermediates/Runner/BuildProductsPath/Release-iphoneos/onesignal -L/Users/rgb/Library/Developer/Xcode/DerivedData/Runner-bfsbdjyhevoadldwunsvgeguxclc/Build/Intermediates.noindex/ArchiveIntermediates/Runner/BuildProductsPath/Release-iphoneos/shared_preferences -L/Users/rgb/Library/Developer/Xcode/DerivedData/Runner-bfsbdjyhevoadldwunsvgeguxclc/Build/Intermediates.noindex/ArchiveIntermediates/Runner/BuildProductsPath/Release-iphoneos/url_launcher -F/Users/rgb/Library/Developer/Xcode/DerivedData/Runner-bfsbdjyhevoadldwunsvgeguxclc/Build/Intermediates.noindex/ArchiveIntermediates/Runner/BuildProductsPath/Release-iphoneos -F/Users/rgb/Repositories/cadsys_member_app_flutter/ios/Pods/../.symlinks/flutter/ios-release -F/Users/rgb/Repositories/cadsys_member_app_flutter/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework -filelist /Users/rgb/Library/Developer/Xcode/DerivedData/Runner-bfsbdjyhevoadldwunsvgeguxclc/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/Runner.build/Release-iphoneos/OneSignalNotificationServiceExtension.build/Objects-normal/arm64/OneSignalNotificationServiceExtension.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/../../Frameworks -miphoneos-version-min=12.1 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/rgb/Library/Developer/Xcode/DerivedData/Runner-bfsbdjyhevoadldwunsvgeguxclc/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/Runner.build/Release-iphoneos/OneSignalNotificationServiceExtension.build/Objects-normal/arm64/OneSignalNotificationServiceExtension_lto.o -fobjc-arc -fobjc-link-runtime -fapplication-extension -ObjC -lonesignal -lshared_preferences -lurl_launcher -framework Flutter -framework OneSignal -framework SystemConfiguration -framework UIKit -framework UserNotifications -ObjC -framework OneSignal -framework SystemConfiguration -framework UIKit -framework UserNotifications -e _NSExtensionMain -lPods-OneSignalNotificationServiceExtension -Xlinker -dependency_info -Xlinker /Users/rgb/Library/Developer/Xcode/DerivedData/Runner-bfsbdjyhevoadldwunsvgeguxclc/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/Runner.build/Release-iphoneos/OneSignalNotificationServiceExtension.build/Objects-normal/arm64/OneSignalNotificationServiceExtension_dependency_info.dat -o /Users/rgb/Library/Developer/Xcode/DerivedData/Runner-bfsbdjyhevoadldwunsvgeguxclc/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/OneSignalNotificationServiceExtension.appex/OneSignalNotificationServiceExtension

Short version

ld: library not found for -lonesignal
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Any idea about this?

Error when building for Android after following SDK setup tutorial

Description:
After following every step, to the letter of the Official SDK Setup, when running

flutter build apk --release

The job fails with

Initializing gradle...                                       1.0s
Resolving dependencies...
* Error running Gradle:
ProcessException: Process
"/Users/lifenautjoe/Documents/code/openbook/openbook-app/android/gradlew" exited
abnormally:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
> Could not get unknown property 'android' for root project 'android' of type
org.gradle.api.Project.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 0s
  Command:
  /Users/lifenautjoe/Documents/code/openbook/openbook-app/android/gradlew
  app:properties


Please review your Gradle project setup in the android/ folder.

I'm pretty confident the error might be in the block that is asked to be appended to the top of the gradle file shown below

buildscript {
    repositories {
        // ...
        maven { url 'https://plugins.gradle.org/m2/' } // Gradle Plugin Portal
    }
    dependencies {
        // ...
        // OneSignal-Gradle-Plugin
        classpath 'gradle.plugin.com.onesignal:onesignal-gradle-plugin:[0.10.2, 0.99.99]'
    }
}

apply plugin: 'com.onesignal.androidsdk.onesignal-gradle-plugin'

Environment

This expression has type 'void' and can't be used

  1. Build for android device

  2. onesignal: ^1.0.1

  3. My code is only initialize Onesignal in flutter.
    OneSignal.shared.init("xxxx");

and Got this error

compiler message: file:///Users/sarinsuriyakoon/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.1/lib/onesignal.dart:269:19: Warning: This expression has type 'void' and can't be used.
compiler message:       return this._onReceivedNotification(
compiler message:                   ^
compiler message: file:///Users/sarinsuriyakoon/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.1/lib/onesignal.dart:273:19: Warning: This expression has type 'void' and can't be used.
compiler message:       return this._onOpenedNotification(
compiler message:                   ^
compiler message: file:///Users/sarinsuriyakoon/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.1/lib/onesignal.dart:277:19: Warning: This expression has type 'void' and can't be used.
compiler message:       return this._onSubscriptionChangedHandler(
compiler message:                   ^
compiler message: file:///Users/sarinsuriyakoon/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.1/lib/onesignal.dart:281:19: Warning: This expression has type 'void' and can't be used.
compiler message:       return this._onPermissionChangedHandler(
compiler message:                   ^
compiler message: file:///Users/sarinsuriyakoon/Documents/development/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.1/lib/onesignal.dart:285:19: Warning: This expression has type 'void' and can't be used.
compiler message:       return this._onEmailSubscriptionChangedHandler(
compiler message:                   ^

Example fails to run on newest Flutter

Description:

I just cloned the Flutter SDK and went to the examples and did a flutter run -- it failed with the following:

Error output from Xcode build:

** BUILD FAILED **

Xcode's output:

ld: warning: directory not found for option
'-L/Users/sjm/play/OneSignal-Flutter-SDK/example/build/ios/Debug-iphonesimulator/onesignal'
ld: library not found for -lonesignal
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Could not build the application for the simulator.
Error launching application on iPhone XR.

Environment

Steps to Reproduce Issue:

  1. Follow the instructions as specified at: API Doc Link
  2. The "flutter run" fails ..

Anything else:

(crash stacktraces, as well as any other information here)

notification.payload.additionalData should be Map<String,dynamic> not Map<dynamic,dynamic>

Description:

When trying to parse notification.payload.additionalData as a Map<String,dynamic> I'm encountering the following exception.

image

If I explicitly cast it as

 Map<String, dynamic> payloadData =
        parsedJson['payload'].cast<String, dynamic>();

It works, but only for the upmost Map. Nested ones suffer from the same issue.

Environment

Flutter doctor -v

[✓] Flutter (Channel master, v1.2.3-pre.32, on Mac OS X 10.14.2 18C54, locale
    en-NL)
    • Flutter version 1.2.3-pre.32 at
      /Users/lifenautjoe/Documents/code/libraries/flutter
    • Framework revision 1a182bf7bf (9 days ago), 2019-02-25 02:40:28 -0500
    • Engine revision 502c9c4002
    • Dart version 2.1.2 (build 2.1.2-dev.0.0 c92d5ca288)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /Users/lifenautjoe/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling
      support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.1, Build version 10B61
    • ios-deploy 1.9.4
    • CocoaPods version 1.5.3

[✓] Android Studio (version 3.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 31.3.1
    • Dart plugin version 181.5656
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[✓] IntelliJ IDEA Ultimate Edition (version 2018.3.4)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 32.0.3
    • Dart plugin version 183.5901

[✓] Connected device (1 available)
    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 9 (API 28)
      (emulator)

• No issues found!

OneSignal SDK Version

  onesignal: ^1.0.5

Runner (true) and OneSignalNotificationServiceExtension (false) do not both set use_frameworks!.

I use onesignal ^1.0.5, I already follow this step https://documentation.onesignal.com/docs/flutter-sdk-setup but still I cannot run my application because of use_frameworkrs! thing.

Running pod install...
CocoaPods' output:
↳
      Preparing

    Analyzing dependencies

    Inspecting targets to integrate
      Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)
      Using `ARCHS` setting to build architectures of target `Pods-OneSignalNotificationServiceExtension`: (``)

    Finding Podfile changes
      - Flutter
      - OneSignal
      - onesignal
      - shared_preferences
      - url_launcher
      - web_vuw

    Fetching external sources
    -> Fetching podspec for `Flutter` from `.symlinks/flutter/ios`
    -> Fetching podspec for `onesignal` from `.symlinks/plugins/onesignal/ios`
    -> Fetching podspec for `shared_preferences` from `.symlinks/plugins/shared_preferences/ios`
    -> Fetching podspec for `url_launcher` from `.symlinks/plugins/url_launcher/ios`
    -> Fetching podspec for `web_vuw` from `.symlinks/plugins/web_vuw/ios`

    Resolving dependencies of `Podfile`
    [!] Unable to integrate the following embedded targets with their respective host targets (a host target is a "parent" target which embeds a "child" target like a framework or extension):

    - Runner (true) and OneSignalNotificationServiceExtension (false) do not both set use_frameworks!.

    /usr/local/Cellar/cocoapods/1.5.3/libexec/gems/cocoapods-1.5.3/lib/cocoapods/installer/analyzer.rb:377:in `analyze_host_targets_in_podfile'
    /usr/local/Cellar/cocoapods/1.5.3/libexec/gems/cocoapods-1.5.3/lib/cocoapods/installer/analyzer.rb:399:in `generate_targets'
    /usr/local/Cellar/cocoapods/1.5.3/libexec/gems/cocoapods-1.5.3/lib/cocoapods/installer/analyzer.rb:91:in `analyze'
    /usr/local/Cellar/cocoapods/1.5.3/libexec/gems/cocoapods-1.5.3/lib/cocoapods/installer.rb:243:in `analyze'
    /usr/local/Cellar/cocoapods/1.5.3/libexec/gems/cocoapods-1.5.3/lib/cocoapods/installer.rb:154:in `block in resolve_dependencies'
    /usr/local/Cellar/cocoapods/1.5.3/libexec/gems/cocoapods-1.5.3/lib/cocoapods/user_interface.rb:64:in `section'
    /usr/local/Cellar/cocoapods/1.5.3/libexec/gems/cocoapods-1.5.3/lib/cocoapods/installer.rb:153:in `resolve_dependencies'
    /usr/local/Cellar/cocoapods/1.5.3/libexec/gems/cocoapods-1.5.3/lib/cocoapods/installer.rb:116:in `install!'
    /usr/local/Cellar/cocoapods/1.5.3/libexec/gems/cocoapods-1.5.3/lib/cocoapods/command/install.rb:41:in `run'
    /usr/local/Cellar/cocoapods/1.5.3/libexec/gems/claide-1.0.2/lib/claide/command.rb:334:in `run'
    /usr/local/Cellar/cocoapods/1.5.3/libexec/gems/cocoapods-1.5.3/lib/cocoapods/command.rb:52:in `run'
    /usr/local/Cellar/cocoapods/1.5.3/libexec/gems/cocoapods-1.5.3/bin/pod:55:in `<top (required)>'
    /usr/local/Cellar/cocoapods/1.5.3/libexec/bin/pod:22:in `load'
    /usr/local/Cellar/cocoapods/1.5.3/libexec/bin/pod:22:in `<main>'

Finished with error: Error running pod install

this is my flutter doctor -v

[✓] Flutter (Channel master, v1.1.10-pre.197, on Mac OS X 10.14.2 18C54, locale en-JP)
    • Flutter version 1.1.10-pre.197 at /Users/ekoprasetyo/flutter
    • Framework revision bb5663d2d8 (10 hours ago), 2019-01-27 09:43:09 -0800
    • Engine revision 9b6d5031a3
    • Dart version 2.1.1 (build 2.1.1-dev.3.2 a5030ed92f)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /Users/ekoprasetyo/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.1, Build version 10B61
    • ios-deploy 1.9.4
    • CocoaPods version 1.5.3

[✓] Android Studio (version 3.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 31.3.3
    • Dart plugin version 182.5124
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)

[✓] VS Code (version 1.30.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 2.21.1

[✓] Connected device (1 available)
    • SM J710F • 52035fadec69a3f9 • android-arm • Android 8.1.0 (API 27)

• No issues found!

have anything idea what happened ?

A lot of messagies

compiler message: flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.1/lib/onesignal.dart:269:19: Warning: This expression has type 'void' and can't be used.
compiler message: return this._onReceivedNotification(
compiler message: ^
compiler message: flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.1/lib/onesignal.dart:273:19: Warning: This expression has type 'void' and can't be used.
compiler message: return this._onOpenedNotification(
compiler message: ^
compiler message: flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.1/lib/onesignal.dart:277:19: Warning: This expression has type 'void' and can't be used.
compiler message: return this._onSubscriptionChangedHandler(
compiler message: ^
compiler message: yourii/flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.1/lib/onesignal.dart:281:19: Warning: This expression has type 'void' and can't be used.
compiler message: return this._onPermissionChangedHandler(
compiler message: ^
compiler message: flutter/.pub-cache/hosted/pub.dartlang.org/onesignal-1.0.1/lib/onesignal.dart:285:19: Warning: This expression has type 'void' and can't be used.
compiler message: return this._onEmailSubscriptionChangedHandler(

iOS badge count not cleared

When increasing the badge count, opening the notification/app does not clear the count and consequent notifications increase the badge count.

badge-bug

Environment

Flutter doctor -v

[✓] Flutter (Channel master, v1.2.3-pre.32, on Mac OS X 10.14.2 18C54, locale
    en-NL)
    • Flutter version 1.2.3-pre.32 at
      /Users/lifenautjoe/Documents/code/libraries/flutter
    • Framework revision 1a182bf7bf (9 days ago), 2019-02-25 02:40:28 -0500
    • Engine revision 502c9c4002
    • Dart version 2.1.2 (build 2.1.2-dev.0.0 c92d5ca288)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /Users/lifenautjoe/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling
      support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.1, Build version 10B61
    • ios-deploy 1.9.4
    • CocoaPods version 1.5.3

[✓] Android Studio (version 3.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 31.3.1
    • Dart plugin version 181.5656
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)

[✓] IntelliJ IDEA Ultimate Edition (version 2018.3.4)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • Flutter plugin version 32.0.3
    • Dart plugin version 183.5901

[✓] Connected device (1 available)
    • Android SDK built for x86 • emulator-5554 • android-x86 • Android 9 (API 28)
      (emulator)

• No issues found!

OneSignal SDK Version

  onesignal: ^1.0.5

`promptUserForPushNotificationPermission` Future never completes

Description:
Calling promptUserForPushNotificationPermission on iOS displays a dialog if necessary but doesn't return a value afterwards on both the emulator and iPhone 6+, inference being that the Future never completes

Environment
Onesignal v1.05, installed via packages get and pubspec.yaml

[✓] Flutter (Channel dev, v1.2.2, on Mac OS X 10.13.6 17G5019, locale en-GB)
    • Flutter version 1.2.2 at /Users/nicford/development/flutter
    • Framework revision 007a415c2a (4 days ago), 2019-02-21 20:22:47 -0800
    • Engine revision f1f19bba8f
    • Dart version 2.2.0 (build 2.2.0-dev.2.1 c92d5ca288)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /Users/nicford/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • ANDROID_HOME = /Users/nicford/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.1, Build version 10B61
    • ios-deploy 1.9.4
    • CocoaPods version 1.5.3

[✓] Android Studio (version 3.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 32.0.1
    • Dart plugin version 182.5215
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)

[✓] VS Code (version 1.25.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 2.21.1

[✓] Connected device (1 available)
    • iPhone 8 Plus • 11540FF4-FB7F-4BE2-A2AA-096C3DC48944 • ios • iOS 12.1 (simulator)

• No issues found!

Steps to Reproduce Issue:

  1. Create a dummy app
  2. add onesignal to the pubspec and run packages get
  3. configure xcode to allow push notifications
  4. replace the main.dart code with the code below
  5. click on the floating action button
  6. Observe 'Before' printed to the console, but not 'After', indicating a hang in promptUserForPushNotificationPermission

New code

import 'package:flutter/material.dart';
import 'package:onesignal/onesignal.dart';

void main() async {
  await OneSignal.shared.setLogLevel(OSLogLevel.verbose, OSLogLevel.none);
  await OneSignal.shared.init(
    '<APP ID>',
    iOSSettings: {
      OSiOSSettings.autoPrompt: false,
      OSiOSSettings.inAppLaunchUrl: true
    }
  );

  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        // This is the theme of your application.
        //
        // Try running your application with "flutter run". You'll see the
        // application has a blue toolbar. Then, without quitting the app, try
        // changing the primarySwatch below to Colors.green and then invoke
        // "hot reload" (press "r" in the console where you ran "flutter run",
        // or simply save your changes to "hot reload" in a Flutter IDE).
        // Notice that the counter didn't reset back to zero; the application
        // is not restarted.
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);

  // This widget is the home page of your application. It is stateful, meaning
  // that it has a State object (defined below) that contains fields that affect
  // how it looks.

  // This class is the configuration for the state. It holds the values (in this
  // case the title) provided by the parent (in this case the App widget) and
  // used by the build method of the State. Fields in a Widget subclass are
  // always marked "final".

  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  int _counter = 0;

  void incrementCounter() {
    setState(() {
      // This call to setState tells the Flutter framework that something has
      // changed in this State, which causes it to rerun the build method below
      // so that the display can reflect the updated values. If we changed
      // _counter without calling setState(), then the build method would not be
      // called again, and so nothing would appear to happen.
      _counter++;
    });
  }

  @override
  Widget build(BuildContext context) {
    // This method is rerun every time setState is called, for instance as done
    // by the _incrementCounter method above.
    //
    // The Flutter framework has been optimized to make rerunning build methods
    // fast, so that you can just rebuild anything that needs updating rather
    // than having to individually change instances of widgets.
    return Scaffold(
      appBar: AppBar(
        // Here we take the value from the MyHomePage object that was created by
        // the App.build method, and use it to set our appbar title.
        title: Text(widget.title),
      ),
      body: Center(
        // Center is a layout widget. It takes a single child and positions it
        // in the middle of the parent.
        child: Column(
          // Column is also layout widget. It takes a list of children and
          // arranges them vertically. By default, it sizes itself to fit its
          // children horizontally, and tries to be as tall as its parent.
          //
          // Invoke "debug painting" (press "p" in the console, choose the
          // "Toggle Debug Paint" action from the Flutter Inspector in Android
          // Studio, or the "Toggle Debug Paint" command in Visual Studio Code)
          // to see the wireframe for each widget.
          //
          // Column has various properties to control how it sizes itself and
          // how it positions its children. Here we use mainAxisAlignment to
          // center the children vertically; the main axis here is the vertical
          // axis because Columns are vertical (the cross axis would be
          // horizontal).
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            Text(
              'You have pushed the button this many times:',
            ),
            Text(
              '$_counter',
              style: Theme.of(context).textTheme.display1,
            ),
          ],
        ),
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: () async {
          print('Before');
          await OneSignal.shared.promptUserForPushNotificationPermission();
          print('After');
        },
        tooltip: 'Increment',
        child: Icon(Icons.add),
      ), // This trailing comma makes auto-formatting nicer for build methods.
    );
  }
}

Push ID not available on Android on first launch

Description:
On first app start

(your description here)

Environment
Using onesignal-1.0.3 from pub
Issue is reproduced on Samsung Galaxy S8+ with android 8.0.0 on first start
If I restart app it works fine

Steps to Reproduce Issue:

  1. Install the OneSignal Flutter SDK using pub into your project
  2. Initialize the SDK using:
      await OneSignal.shared.init("3db4f756-89a0-408e-bc97-28ba44a5ea8e",
          iOSSettings: { OSiOSSettings.inFocusDisplayOption: "none"});
      OneSignal.shared.setNotificationReceivedHandler((notification) {
        print("Received notification ${notification.payload.additionalData}");
      });
      OneSignal.shared.setSubscriptionObserver((sub) {
        updateSelf();
      });
  1. No OneSignal push ID received as a result

Logcat:

12-05 15:41:01.050 26547-26547/app.babymonitor W/OneSignal: Both GCM & FCM Libraries detected! Please remove the deprecated GCM library.
12-05 15:41:01.109 26547-26952/app.babymonitor I/System.out: (HTTPLog)-Static: isSBSettingEnabled false
(HTTPLog)-Static: isSBSettingEnabled false:
12-05 15:41:01.171 26547-26547/app.babymonitor W/System.err: java.lang.NoSuchMethodException: onOSSubscriptionChanged [class com.onesignal.LocationGMS$FusedLocationApiWrapper]
12-05 15:41:01.175 26547-26547/app.babymonitor W/System.err: at java.lang.Class.getMethod(Class.java:2068)
at java.lang.Class.getDeclaredMethod(Class.java:2047)
12-05 15:41:01.176 26547-26547/app.babymonitor W/System.err: at com.onesignal.OSObservable.notifyChange(OSObservable.java:77)
at com.onesignal.OSSubscriptionChangedInternalObserver.fireChangesToPublicObserver(OSSubscriptionChangedInternalObserver.java:46)
at com.onesignal.OneSignal.addSubscriptionObserver$392b2122(OneSignal.java:2639)
at com.onesignal.flutter.OneSignalPlugin.addObservers(OneSignalPlugin.java:117)
12-05 15:41:01.177 26547-26547/app.babymonitor W/System.err: at com.onesignal.flutter.OneSignalPlugin.onMethodCall(OneSignalPlugin.java:1111)
at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:200)
at io.flutter.view.FlutterNativeView.handlePlatformMessage(FlutterNativeView.java:163)
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:325)
at android.os.Looper.loop(Looper.java:142)
12-05 15:41:01.178 26547-26547/app.babymonitor W/System.err: at android.app.ActivityThread.main(ActivityThread.java:6938)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
12-05 15:41:01.186 26547-26547/app.babymonitor W/System.err: java.lang.NoSuchMethodException: onOSPermissionChanged [class com.onesignal.BundleCompatFactory]
12-05 15:41:01.187 26547-26547/app.babymonitor W/System.err: at java.lang.Class.getMethod(Class.java:2068)
at java.lang.Class.getDeclaredMethod(Class.java:2047)
at com.onesignal.OSObservable.notifyChange(OSObservable.java:77)
at com.onesignal.OSPermissionChangedInternalObserver.fireChangesToPublicObserver(OSPermissionChangedInternalObserver.java:52)
12-05 15:41:01.188 26547-26547/app.babymonitor W/System.err: at com.onesignal.OneSignal.addPermissionObserver$2c67a2d4(OneSignal.java:2602)
at com.onesignal.flutter.OneSignalPlugin.addObservers(OneSignalPlugin.java:119)
at com.onesignal.flutter.OneSignalPlugin.onMethodCall(OneSignalPlugin.java:1111)
at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:200)
12-05 15:41:01.188 26547-26547/app.babymonitor W/System.err: at io.flutter.view.FlutterNativeView.handlePlatformMessage(FlutterNativeView.java:163)
at android.os.MessageQueue.nativePollOnce(Native Method)
12-05 15:41:01.189 26547-26547/app.babymonitor W/System.err: at android.os.MessageQueue.next(MessageQueue.java:325)
at android.os.Looper.loop(Looper.java:142)
at android.app.ActivityThread.main(ActivityThread.java:6938)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
12-05 15:41:01.190 26547-26547/app.babymonitor W/System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
12-05 15:41:01.219 26547-26594/app.babymonitor I/flutter: Instance of 'OSPermissionSubscriptionState'
12-05 15:41:01.220 26547-26594/app.babymonitor I/flutter: null
12-05 15:41:01.508 26547-26974/app.babymonitor W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
12-05 15:41:01.510 26547-26571/app.babymonitor W/DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
12-05 15:41:01.511 26547-26571/app.babymonitor I/FirebaseAuth: [FirebaseAuth:] Loading module via FirebaseOptions.
[FirebaseAuth:] Preparing to create service connection to gms implementation
12-05 15:41:01.779 26547-26973/app.babymonitor W/System.err: java.lang.NoSuchMethodException: onOSSubscriptionChanged [class com.onesignal.LocationGMS$FusedLocationApiWrapper]
at java.lang.Class.getMethod(Class.java:2068)
12-05 15:41:01.780 26547-26973/app.babymonitor W/System.err: at java.lang.Class.getDeclaredMethod(Class.java:2047)
at com.onesignal.OSObservable.notifyChange(OSObservable.java:77)
at com.onesignal.OSSubscriptionChangedInternalObserver.fireChangesToPublicObserver(OSSubscriptionChangedInternalObserver.java:46)
at com.onesignal.OSSubscriptionChangedInternalObserver.changed(OSSubscriptionChangedInternalObserver.java:33)
at java.lang.reflect.Method.invoke(Native Method)
at com.onesignal.OSObservable.notifyChange(OSObservable.java:95)
12-05 15:41:01.781 26547-26973/app.babymonitor W/System.err: at com.onesignal.OSSubscriptionState.setPushToken(OSSubscriptionState.java:84)
at com.onesignal.OneSignal$3.complete(OneSignal.java:814)
at com.onesignal.PushRegistratorAbstractGoogle.attemptRegistration(PushRegistratorAbstractGoogle.java:99)
at com.onesignal.PushRegistratorAbstractGoogle.access$100(PushRegistratorAbstractGoogle.java:37)
at com.onesignal.PushRegistratorAbstractGoogle$1.run(PushRegistratorAbstractGoogle.java:84)
at java.lang.Thread.run(Thread.java:764)
12-05 15:41:07.207 26547-27038/app.babymonitor I/System.out: (HTTPLog)-Static: isSBSettingEnabled false
12-05 15:41:07.208 26547-27038/app.babymonitor I/System.out: (HTTPLog)-Static: isSBSettingEnabled false
12-05 15:41:07.419 26547-27039/app.babymonitor W/System.err: java.lang.NoSuchMethodException: onOSSubscriptionChanged [class com.onesignal.LocationGMS$FusedLocationApiWrapper]
12-05 15:41:07.420 26547-27039/app.babymonitor W/System.err: at java.lang.Class.getMethod(Class.java:2068)
at java.lang.Class.getDeclaredMethod(Class.java:2047)
at com.onesignal.OSObservable.notifyChange(OSObservable.java:77)
at com.onesignal.OSSubscriptionChangedInternalObserver.fireChangesToPublicObserver(OSSubscriptionChangedInternalObserver.java:46)
12-05 15:41:07.421 26547-27039/app.babymonitor W/System.err: at com.onesignal.OSSubscriptionChangedInternalObserver.changed(OSSubscriptionChangedInternalObserver.java:33)
at java.lang.reflect.Method.invoke(Native Method)
at com.onesignal.OSObservable.notifyChange(OSObservable.java:95)
at com.onesignal.OSSubscriptionState.setUserId(OSSubscriptionState.java:71)
at com.onesignal.OneSignal.updateUserIdDependents(OneSignal.java:2100)
12-05 15:41:07.422 26547-27039/app.babymonitor W/System.err: at com.onesignal.UserStatePushSynchronizer.updateIdDependents(UserStatePushSynchronizer.java:135)
at com.onesignal.UserStateSynchronizer$5.onSuccess(UserStateSynchronizer.java:362)
at com.onesignal.OneSignalRestClient$5.run(OneSignalRestClient.java:208)
12-05 15:41:07.423 26547-27039/app.babymonitor W/System.err: at java.lang.Thread.run(Thread.java:764)
12-05 15:41:51.954 26547-26547/app.babymonitor I/InputMethodManager: startInputInner - mService.startInputOrWindowGainedFocus
12-05 15:43:07.519 26547-26581/app.babymonitor I/System.out: (HTTPLog)-Static: isSBSettingEnabled false

Can't change notification displayType on the example project on Android

I was testing the example project on android and tried to change:
OneSignal.shared.setInFocusDisplayType(OSNotificationDisplayType.notification);
to:
OneSignal.shared.setInFocusDisplayType(OSNotificationDisplayType.none);
but the notification was still showing.

Notification JSON:

I/flutter (25042): Received notification: 
I/flutter (25042): {
I/flutter (25042):   "payload": "{
I/flutter (25042):   "google.sent_time": 1534274760440,
I/flutter (25042):   "google.ttl": 259200,
I/flutter (25042):   "custom": "{"i":"1d407634-82de-4807-a6ba-5128746687db","a":{"actionButtons":[{"id":"id1","text":"test1","icon":"null"},{"id":"id2","text":"test2","icon":"null"}],"actionSelected":"__DEFAULT__"}}",
I/flutter (25042):   "from": "531101699633",
I/flutter (25042):   "alert": "this is a test from OneSignal's Flutter SDK",
I/flutter (25042):   "bicon": "http://cdn1-www.dogtime.com/assets/uploads/gallery/30-impossibly-cute-puppies/impossibly-cute-puppy-2.jpg",
I/flutter (25042):   "title": "Test Notification",
I/flutter (25042):   "google.message_id": "0:1534274760445454%27163fb3f9fd7ecd",
I/flutter (25042):   "google.priority": "normal",
I/flutter (25042):   "notificationId": -2145615901
I/flutter (25042): }",
I/flutter (25042):   "displayType": 2,
I/flutter (25042):   "shown": true,
I/flutter (25042):   "appInFocus": false,
I/flutter (25042):   "silent": null
I/flutter (25042): }

i don't know if that is the correct way to change the displayType but it doesn't seem to work

Pod install fails after following official SDK tutorial

Description:
Following the Flutter SDK Setup step by step, at step 2.8:

2.8 Open terminal, cd to the /ios directory, and run pod install.

The install fails with the error message

Analyzing dependencies
Fetching podspec for `Flutter` from `.symlinks/flutter/ios-release`
Fetching podspec for `flutter_secure_storage` from `.symlinks/plugins/flutter_secure_storage/ios`
Fetching podspec for `image_cropper` from `.symlinks/plugins/image_cropper/ios`
Fetching podspec for `image_picker` from `.symlinks/plugins/image_picker/ios`
Fetching podspec for `onesignal` from `.symlinks/plugins/onesignal/ios`
Fetching podspec for `path_provider` from `.symlinks/plugins/path_provider/ios`
Fetching podspec for `shared_preferences` from `.symlinks/plugins/shared_preferences/ios`
Fetching podspec for `uni_links` from `.symlinks/plugins/uni_links/ios`
Fetching podspec for `url_launcher` from `.symlinks/plugins/url_launcher/ios`
Fetching podspec for `video_player` from `.symlinks/plugins/video_player/ios`
[!] CocoaPods could not find compatible versions for pod "OneSignal":
  In Podfile:
    OneSignal (< 3.0, >= 2.9.3)

    onesignal (from `.symlinks/plugins/onesignal/ios`) was resolved to 1.0.5, which depends on
      OneSignal (< 3.0, >= 2.9.5)

Specs satisfying the `OneSignal (< 3.0, >= 2.9.3), OneSignal (< 3.0, >= 2.9.5)` dependency were found, but they required a higher minimum deployment target.

[!] Automatically assigning platform `ios` with version `8.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.

[!] Automatically assigning platform `ios` with version `10.2` on target `OneSignalNotificationServiceExtension` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.

Environment

Icon was not displayed on notification. White square displayed istead!

Here is my icon:
ic_stat_onesignal_default
I used Image Asset tool in android studio to make this icon.

pubspec.yaml
dependencies:
flutter_webview_plugin: ^0.3.0+2
onesignal: ^1.0.0
flutter:
sdk: flutter

In AndroidManifest.xml
<meta-data android:name="ic_stat_onesignal_default" android:value="@drawable/ic_stat_onesignal_default" />
<meta-data android:name="com.onesignal.ic_stat_onesignal_default" android:value="@drawable/ic_stat_onesignal_default" />

in C#
public MessageData(OneSignalMessenger data)
{
this.app_id = data.sender.appId;
this.headings = new { en = data.title };
this.subtitle = new { en = data.subtitle };
this.contents = data.contents;
this.include_player_ids = data.include_player_ids;
this.included_segments = data.included_segments;
this.url = data.url;
this.small_icon = "ic_stat_onesignal_default";
}

I don't know what went wrong!
I have no idea to fix this error!

Please help me. Thank you so much in advance!

The following issues occured while distributing your application.

Description:
I got these errors:

App Store Connect Operation Warning
WARNING ITMS-90473: "CFBundleVersion Mismatch. The CFBundleVersion value '1' of extension 'Runner.app/PlugIns/OneSignalNotificationServiceExtension.appex' does not match the CFBundleVersion value '4' of its containing iOS application 'Runner.app'."
App Store Connect Operation Warning
WARNING ITMS-90473: "CFBundleShortVersionString Mismatch. The CFBundleShortVersionString value '1.0' of extension 'Runner.app/PlugIns/OneSignalNotificationServiceExtension.appex' does not match the CFBundleShortVersionString value '1.0.0' of its containing iOS application 'Runner.app'."

I can't upload to Test Flight, what can I do?

  1. Onesignal flutter sdk : onesignal: 1.0.3

This is my pubspec.yaml

dependencies:
  flutter:
    sdk: flutter
  #
  carousel_slider: ^1.0.1
  http: 0.12.0
  cached_network_image: 0.6.1
  video_player: "^0.5.1"
  intl: ^0.15.2
  body_parser: 1.1.1
  dynamic_theme: 1.0.1
  #image_picker: 0.4.12+1
  #
  collection: 1.14.11
  device_info: 0.2.1
  connectivity: 0.3.2
  shared_preferences: 0.5.0
  flutter_range_slider: ^1.0.1
  #flutter_launcher_icons: 0.7.0
  #firebase_core: ^0.2.5  # add dependency for Firebase Core
  #firebase_analytics: ^1.0.4  # add dependency for Google Analytics for Firebase
  #flutter_crashlytics: ^0.2.1
  onesignal: 1.0.3
  #
  cupertino_icons: ^0.1.2
  #
  flutter_mdns_plugin:
      path: flutter_mdns_plugin
  #
#

Add support to change language

Currently the SDK used device language, but my application is a multilingual app, but yet it retain the device language. Hence, I wanted to have the ability to change OneSignal language code

Cannot run pod install for IOS

Description:

  1. What version of the OneSignal Flutter SDK are you using?
    1.0.2

When I run pod install after adding
target 'OneSignalNotificationServiceExtension' do s.dependency 'OneSignalDynamic', '>= 2.8.8', '< 3.0' end

to pod file a receive this error

[!] Invalid Podfilefile: undefined local variable or methods' for #Pod::Podfile:0x00007fc695418260.`

Environment

Execution failed for task ':flutter_one_signal:compileDebugKotlin'.

Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, v1.0.0, on Microsoft Windows [Version 10.0.17134.523], locale ru-RU)
[√] Android toolchain - develop for Android devices (Android SDK 28.0.3)
[√] Android Studio (version 3.2)
[√] Connected device (1 available)

build.gradle

buildscript {
    repositories {
        google()
        jcenter()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.2'
        classpath 'com.google.gms:google-services:4.2.0'
        classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.71'
    }
}

allprojects {
    repositories {
        google()
        jcenter()
    }
}

rootProject.buildDir = '../build'
subprojects {
    project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
    project.evaluationDependsOn(':app')
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

app/build.gradle

buildscript {
    repositories {
        maven { url 'https://plugins.gradle.org/m2/'}
    }
    dependencies {
        classpath 'gradle.plugin.com.onesignal:onesignal-gradle-plugin:[0.12.1, 1.99.99]'
    }
}

apply plugin: 'com.onesignal.androidsdk.onesignal-gradle-plugin'

repositories {
    maven { url 'https://maven.google.com' }
}


def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
    localPropertiesFile.withReader('UTF-8') { reader ->
        localProperties.load(reader)
    }
}

def flutterRoot = localProperties.getProperty('flutter.sdk')
if (flutterRoot == null) {
    throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
}

def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
    flutterVersionCode = '1'
}

def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
    flutterVersionName = '1.0'
}

apply plugin: 'com.android.application'
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"

android {
    compileSdkVersion 27

    lintOptions {
        disable 'InvalidPackage'
    }

    defaultConfig {
        // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
        applicationId "ru.sell2buy.businessapp"
        minSdkVersion 16
        targetSdkVersion 27
        versionCode flutterVersionCode.toInteger()
        versionName flutterVersionName
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        manifestPlaceholders = [
                onesignal_app_id: '-------',
                onesignal_google_project_number: 'REMOTE'
        ]
    }

    buildTypes {
        release {
            // TODO: Add your own signing config for the release build.
            // Signing with the debug keys for now, so `flutter run --release` works.
            signingConfig signingConfigs.debug
        }
    }
}

Full Error

Note: C:\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_webview_plugin-0.3.0+2\android\src\main\java\com\flutter_webview_plugin\WebviewManager.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
e: C:\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_one_signal-0.2.1\android\src\main\kotlin\com\myhexaville\flutteronesignal\FlutterOneSignalPlugin.kt: (50, 35): Type mismatch: inferred type is Boolean? but Boolean was expected
e: C:\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_one_signal-0.2.1\android\src\main\kotlin\com\myhexaville\flutteronesignal\FlutterOneSignalPlugin.kt: (79, 28): Type mismatch: inferred type is String? but String was expected
e: C:\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_one_signal-0.2.1\android\src\main\kotlin\com\myhexaville\flutteronesignal\FlutterOneSignalPlugin.kt: (98, 80): Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type String?

Error java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/ads/identifier/AdvertisingIdClient when I open a notification

Description:
I implemented this plugin and it works, but in the debug console I get this error when I open a notification:

Error getting Google Ad id:
I/OneSignal(17403): java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/ads/identifier/AdvertisingIdClient;
I/OneSignal(17403): 	at com.onesignal.AdvertisingIdProviderGPS.getIdentifier(AdvertisingIdProviderGPS.java:45)
I/OneSignal(17403): 	at com.onesignal.OneSignal.registerUserTask(OneSignal.java:1223)
I/OneSignal(17403): 	at com.onesignal.OneSignal.access$2300(OneSignal.java:80)
I/OneSignal(17403): 	at com.onesignal.OneSignal$7.run(OneSignal.java:1206)
I/OneSignal(17403): 	at java.lang.Thread.run(Thread.java:762)
I/OneSignal(17403): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.ads.identifier.AdvertisingIdClient" on path: DexPathList[[zip file "/data/app/com.example-2/base.apk"],nativeLibraryDirectories=[/data/app/com.example-2/lib/arm, /data/app/com.example-2/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]
I/OneSignal(17403): 	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
I/OneSignal(17403): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
I/OneSignal(17403): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:312)

The notification is opened correctly, but I do not know what this error means or if its serious.

Steps to Reproduce Issue:

  1. Install the OneSignal Flutter SDK using pub into your project
  2. Initialize the SDK using OneSignal.shared.init(your_app_id)
  3. Attempt to receive a push notification

Library not found fo -lonesignal

Description:

App fails to build on iOS on actual device, comes up with

ld: library not found for -lonesignal
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Have tried repo deintegrate, the pod install again.

Environment

Follow the instructions in https://documentation.onesignal.com/v5.0/docs/flutter-sdk-setup, but had to do pod repo update before pod install, otherwise errors saying cannot find the package or something like that.

in pubspec.yaml.
onesignal: ^1.0.5

Flutter Doctor:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v1.0.0, on Mac OS X 10.14.2 18C54, locale en-NZ)
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
[✓] Android Studio (version 3.2)
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
[✓] VS Code (version 1.30.2)
[!] Connected device
! No devices available

pod version: 1.5.3

Steps to Reproduce Issue:

exactly as the set-up

  1. Generate an iOS Push Certificate
  2. install dependency in pubspec.yml
  3. Add Notification Service Extension and press cancel on the Activate Scheme
  4. Change deployment type for OneSignal expansion target to 10.0 (have tried changing the Runner target as well to 10.0)
    5 Change pod.file and run "pod repo update" then run "pod install"
  5. Change the entire NotificationService.m file.
  6. added App Group
  7. enable Capabilities

Anything else:
Ld /Users/shareclarity/Library/Developer/Xcode/DerivedData/Runner-gxfksahdwwgmmofxvzyzhdwilbht/Build/Products/Debug-iphoneos/OneSignalNotificationServiceExtension.appex/OneSignalNotificationServiceExtension normal arm64
cd /Users/shareclarity/Developer/flutter_project/shareclarity_app/ios
export IPHONEOS_DEPLOYMENT_TARGET=10.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS12.1.sdk -L/Users/shareclarity/Library/Developer/Xcode/DerivedData/Runner-gxfksahdwwgmmofxvzyzhdwilbht/Build/Products/Debug-iphoneos -L/Users/shareclarity/Library/Developer/Xcode/DerivedData/Runner-gxfksahdwwgmmofxvzyzhdwilbht/Build/Products/Debug-iphoneos/FirebaseCore -L/Users/shareclarity/Library/Developer/Xcode/DerivedData/Runner-gxfksahdwwgmmofxvzyzhdwilbht/Build/Products/Debug-iphoneos/GTMSessionFetcher -L/Users/shareclarity/Library/Developer/Xcode/DerivedData/Runner-gxfksahdwwgmmofxvzyzhdwilbht/Build/Products/Debug-iphoneos/GoogleAPIClientForREST -L/Users/shareclarity/Library/Developer/Xcode/DerivedData/Runner-gxfksahdwwgmmofxvzyzhdwilbht/Build/Products/Debug-iphoneos/GoogleToolboxForMac -L/Users/shareclarity/Library/Developer/Xcode/DerivedData/Runner-gxfksahdwwgmmofxvzyzhdwilbht/Build/Products/Debug-iphoneos/GoogleUtilities-00567490 -L/Users/shareclarity/Library/Developer/Xcode/DerivedData/Runner-gxfksahdwwgmmofxvzyzhdwilbht/Build/Products/Debug-iphoneos/Protobuf -L/Users/shareclarity/Library/Developer/Xcode/DerivedData/Runner-gxfksahdwwgmmofxvzyzhdwilbht/Build/Products/Debug-iphoneos/Stripe -L/Users/shareclarity/Library/Developer/Xcode/DerivedData/Runner-gxfksahdwwgmmofxvzyzhdwilbht/Build/Products/Debug-iphoneos/device_info -L/Users/shareclarity/Library/Developer/Xcode/DerivedData/Runner-gxfksahdwwgmmofxvzyzhdwilbht/Build/Products/Debug-iphoneos/flutter_inapp_purchase -L/Users/shareclarity/Library/Developer/Xcode/DerivedData/Runner-gxfksahdwwgmmofxvzyzhdwilbht/Build/Products/Debug-iphoneos/flutter_webview_plugin -L/Users/shareclarity/Library/Developer/Xcode/DerivedData/Runner-gxfksahdwwgmmofxvzyzhdwilbht/Build/Products/Debug-iphoneos/nanopb -L/Users/shareclarity/Library/Developer/Xcode/DerivedData/Runner-gxfksahdwwgmmofxvzyzhdwilbht/Build/Products/Debug-iphoneos/onesignal -L/Users/shareclarity/Library/Developer/Xcode/DerivedData/Runner-gxfksahdwwgmmofxvzyzhdwilbht/Build/Products/Debug-iphoneos/shared_preferences -L/Users/shareclarity/Library/Developer/Xcode/DerivedData/Runner-gxfksahdwwgmmofxvzyzhdwilbht/Build/Products/Debug-iphoneos/stripe_widget -L/Users/shareclarity/Library/Developer/Xcode/DerivedData/Runner-gxfksahdwwgmmofxvzyzhdwilbht/Build/Products/Debug-iphoneos/textdetect_widget -L/Users/shareclarity/Library/Developer/Xcode/DerivedData/Runner-gxfksahdwwgmmofxvzyzhdwilbht/Build/Products/Debug-iphoneos/voice_recognition -L/Users/shareclarity/Library/Developer/Xcode/DerivedData/Runner-gxfksahdwwgmmofxvzyzhdwilbht/Build/Products/Debug-iphoneos/GoogleUtilities-7afea142 -F/Users/shareclarity/Library/Developer/Xcode/DerivedData/Runner-gxfksahdwwgmmofxvzyzhdwilbht/Build/Products/Debug-iphoneos -F/Users/shareclarity/Developer/flutter_project/shareclarity_app/ios/Pods/FirebaseAnalytics/Frameworks -F/Users/shareclarity/Developer/flutter_project/shareclarity_app/ios/Pods/FirebaseInstanceID/Frameworks -F/Users/shareclarity/Developer/flutter_project/shareclarity_app/ios/Pods/FirebaseMLCommon/Frameworks -F/Users/shareclarity/Developer/flutter_project/shareclarity_app/ios/Pods/FirebaseMLVision/Frameworks -F/Users/shareclarity/Developer/flutter_project/shareclarity_app/ios/Pods/FirebaseMLVisionTextModel/Frameworks -F/Users/shareclarity/Developer/flutter_project/shareclarity_app/ios/Pods/../.symlinks/flutter/ios -F/Users/shareclarity/Developer/flutter_project/shareclarity_app/ios/Pods/GoogleAppMeasurement/Frameworks -F/Users/shareclarity/Developer/flutter_project/shareclarity_app/ios/Pods/GoogleMobileVision/Detector/Frameworks -F/Users/shareclarity/Developer/flutter_project/shareclarity_app/ios/Pods/GoogleMobileVision/TextDetector/Frameworks -F/Users/shareclarity/Developer/flutter_project/shareclarity_app/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework -filelist /Users/shareclarity/Library/Developer/Xcode/DerivedData/Runner-gxfksahdwwgmmofxvzyzhdwilbht/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/OneSignalNotificationServiceExtension.build/Objects-normal/arm64/OneSignalNotificationServiceExtension.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/../../Frameworks -miphoneos-version-min=10.0 -dead_strip -Xlinker -object_path_lto -Xlinker /Users/shareclarity/Library/Developer/Xcode/DerivedData/Runner-gxfksahdwwgmmofxvzyzhdwilbht/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/OneSignalNotificationServiceExtension.build/Objects-normal/arm64/OneSignalNotificationServiceExtension_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -fembed-bitcode-marker -fobjc-arc -fobjc-link-runtime -fapplication-extension -ObjC -lFirebaseCore -lGTMSessionFetcher -lGoogleAPIClientForREST -lGoogleToolboxForMac -lGoogleUtilities-00567490 -lProtobuf -lStripe -lc++ -ldevice_info -lflutter_inapp_purchase -lflutter_webview_plugin -lnanopb -lonesignal -lshared_preferences -lsqlite3 -lstripe_widget -ltextdetect_widget -lvoice_recognition -lz -framework AVFoundation -framework Accelerate -framework AddressBook -framework CoreGraphics -framework CoreImage -framework CoreLocation -framework CoreMedia -framework CoreVideo -framework FIRAnalyticsConnector -framework FirebaseAnalytics -framework FirebaseCoreDiagnostics -framework FirebaseInstanceID -framework FirebaseMLCommon -framework FirebaseMLVision -framework FirebaseMLVisionTextModel -framework Flutter -framework Foundation -framework GoogleAppMeasurement -framework GoogleMobileVision -framework LocalAuthentication -framework OneSignal -framework PassKit -framework Security -framework StoreKit -framework SystemConfiguration -framework TextDetector -framework UIKit -framework UserNotifications -framework WebKit -weak_framework Contacts -ObjC -lGoogleUtilities-7afea142 -lc++ -lnanopb -lsqlite3 -lz -framework GoogleAppMeasurement -framework OneSignal -framework Security -framework StoreKit -framework SystemConfiguration -framework UIKit -framework UserNotifications -e _NSExtensionMain -lPods-OneSignalNotificationServiceExtension -Xlinker -dependency_info -Xlinker /Users/shareclarity/Library/Developer/Xcode/DerivedData/Runner-gxfksahdwwgmmofxvzyzhdwilbht/Build/Intermediates.noindex/Runner.build/Debug-iphoneos/OneSignalNotificationServiceExtension.build/Objects-normal/arm64/OneSignalNotificationServiceExtension_dependency_info.dat -o /Users/shareclarity/Library/Developer/Xcode/DerivedData/Runner-gxfksahdwwgmmofxvzyzhdwilbht/Build/Products/Debug-iphoneos/OneSignalNotificationServiceExtension.appex/OneSignalNotificationServiceExtension

ld: warning: directory not found for option '-L/Users/shareclarity/Library/Developer/Xcode/DerivedData/Runner-gxfksahdwwgmmofxvzyzhdwilbht/Build/Products/Debug-iphoneos/onesignal'
ld: warning: directory not found for option '-L/Users/shareclarity/Library/Developer/Xcode/DerivedData/Runner-gxfksahdwwgmmofxvzyzhdwilbht/Build/Products/Debug-iphoneos/voice_recognition'
ld: library not found for -lonesignal
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Please let me know if there is anything else I can provide or try

Thanks you.

Documentation needs updating on how to integrate OneSignal for iOS

Description:

I spent 5 hours today tracking down why -- after following the instructions for installing OneSignal my flutter app wouldn't run anymore. Not a lot of fun.

The issue is that depending on whim or who knows -- Xcode saves the Runner -> project.pbxproj with all the bundle id's listed (one per scheme) in "random" (doubtful but still) order. This means that the new scheme/target for OneSignal -- PRODUCT_BUNDLE_IDENTIFIER = com.xxx.app.OneSignalNotificationServiceExtension;

Could be first -- and then flutter uses the FIRST BUNDLE_ID it finds if the Info.plist is set to $(PRODUCT_BUNDLE_ID). Which it is by default. Hence, when you run it "simctl launch" tries to launch the wrong bundle id.

The easiest solution - if not the cleanest -- is to set in the Info.plist

<key>CFBundleIdentifier</key>
<string>com.xxx.app</string>

Which takes precedence .. the other option is to handle arrange the project.pbxproj to make sure the real app is first - but I think opening Xcode again and saving could re-arrange it? Hard to tell ..

Environment

iOS

Steps to Reproduce Issue:

  1. See above

Anything else:

(crash stacktraces, as well as any other information here)

Conflict with others packages that depends from newer Play Services package

Description:

There is an incompatibility with some plugins that manage geolocation probably because of the outdated version of GooglePlay services used in onesignal as a dependency.

Simply add the onesignal package to geolocator sample project, configure correctly the two packages, and run on a device and BOOM the trick happens
the app crashes on startup...

Environment

Steps to Reproduce Issue:

  1. Clone the example project from geolocator
  2. Add latest one signal package to the project.
  3. Run application in any Android device..
  4. See the app closes before it opens
    my pubspec...
environment:
  sdk: ">=2.0.0-dev.68.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter
  onesignal: ^1.0.2
  geolocator: ^2.0.1

Anything else:

(crash stacktraces, as well as any other information here)

In this issue you have information about logcat, Link to issue

clang: error: linker command failed with exit code 1 (Cocoapods issue)

Description:

Every once in a while -- after adding a new package (sometimes) or clearing some cache, our application refuses to build on iOS simulators/debug .. and sometimes takes a few tries on production release builds .. with a build error about nothing finding trying to link

OneSignalNotificationServiceExtension

What appears to be happening is that this Ld is premature and all the other Pods needed and listed haven't been compiled yet .. so the ld fails because Flutter puts them all together.. here is the snippest from the fails:

               /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only x86_64 -syslibroot /Applications/Xcode.app/Contents/Developer/Plat
forms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk -L/Users/sjm/work/mm/mms4/mobile/build/ios/Debug-iphonesimulator/package_info -filelist /Users/sjm/Library/Developer/Xcode/De
rivedData/Runner-fmfgxmbciwytkiaoztfoxtepvsaw/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/package_info.build/Objects-normal/x86_64/package_info.LinkFileList -o /Users/sjm/work/mm
/mms4/mobile/build/ios/Debug-iphonesimulator/package_info/libpackage_info.a

           === BUILD TARGET OneSignalNotificationServiceExtension OF PROJECT Runner WITH CONFIGURATION Debug ===

           Check dependencies

           Create product structure
           /bin/mkdir -p /Users/sjm/work/mm/mms4/mobile/build/ios/Debug-iphonesimulator/OneSignalNotificationServiceExtension.appex

           ProcessInfoPlistFile /Users/sjm/work/mm/mms4/mobile/build/ios/Debug-iphonesimulator/OneSignalNotificationServiceExtension.appex/Info.plist OneSignalNotificationServiceExtension/Info.pl
ist
               cd /Users/sjm/work/mm/mms4/mobile/ios
               export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/sjm/Developme
nt/flutter/bin:/Users/sjm/.fastlane/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:."
               builtin-infoPlistUtility /Users/sjm/work/mm/mms4/mobile/ios/OneSignalNotificationServiceExtension/Info.plist -expandbuildsettings -format binary -platform iphonesimulator -o /Users
/sjm/work/mm/mms4/mobile/build/ios/Debug-iphonesimulator/OneSignalNotificationServiceExtension.appex/Info.plist

           PhaseScriptExecution [CP]\ Check\ Pods\ Manifest.lock /Users/sjm/Library/Developer/Xcode/DerivedData/Runner-fmfgxmbciwytkiaoztfoxtepvsaw/Build/Intermediates.noindex/Runner.build/Debug-
iphonesimulator/OneSignalNotificationServiceExtension.build/Script-7206A2BF19E0D481309F4ACF.sh
               cd /Users/sjm/work/mm/mms4/mobile/ios
               /bin/sh -c /Users/sjm/Library/Developer/Xcode/DerivedData/Runner-fmfgxmbciwytkiaoztfoxtepvsaw/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/OneSignalNotificationSe
rviceExtension.build/Script-7206A2BF19E0D481309F4ACF.sh

           Ld /Users/sjm/work/mm/mms4/mobile/build/ios/Debug-iphonesimulator/OneSignalNotificationServiceExtension.appex/OneSignalNotificationServiceExtension normal x86_64
               cd /Users/sjm/work/mm/mms4/mobile/ios
               export IPHONEOS_DEPLOYMENT_TARGET=10.0
               export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/sjm/Developme
nt/flutter/bin:/Users/sjm/.fastlane/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:."
               /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimul
ator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk -L/Users/sjm/work/mm/mms4/mobile/build/ios/Debug-iphonesimulator -L/Users/sjm/work/mm/mms4/mobile/build/ios/Debug-iphonesimulator/device_info
-L/Users/sjm/work/mm/mms4/mobile/build/ios/Debug-iphonesimulator/flutter_secure_storage -L/Users/sjm/work/mm/mms4/mobile/build/ios/Debug-iphonesimulator/local_auth -L/Users/sjm/work/mm/mms4/mobil
e/build/ios/Debug-iphonesimulator/location -L/Users/sjm/work/mm/mms4/mobile/build/ios/Debug-iphonesimulator/onesignal -L/Users/sjm/work/mm/mms4/mobile/build/ios/Debug-iphonesimulator/open_file -L
/Users/sjm/work/mm/mms4/mobile/build/ios/Debug-iphonesimulator/package_info -L/Users/sjm/work/mm/mms4/mobile/build/ios/Debug-iphonesimulator/path_provider -L/Users/sjm/work/mm/mms4/mobile/build/i
os/Debug-iphonesimulator/shared_preferences -L/Users/sjm/work/mm/mms4/mobile/build/ios/Debug-iphonesimulator/uni_links -L/Users/sjm/work/mm/mms4/mobile/build/ios/Debug-iphonesimulator/url_launche
r -F/Users/sjm/work/mm/mms4/mobile/build/ios/Debug-iphonesimulator -F/Users/sjm/work/mm/mms4/mobile/ios/Pods/../.symlinks/flutter/ios -F/Users/sjm/work/mm/mms4/mobile/ios/Pods/OneSignal/iOS_SDK/O
neSignalSDK/Framework -filelist /Users/sjm/Library/Developer/Xcode/DerivedData/Runner-fmfgxmbciwytkiaoztfoxtepvsaw/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/OneSignalNotifica
tionServiceExtension.build/Objects-normal/x86_64/OneSignalNotificationServiceExtension.LinkFileList -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @loader_path/Fram
eworks -Xlinker -rpath -Xlinker @executable_path/Frameworks -Xlinker -rpath -Xlinker @executable_path/../../Frameworks -mios-simulator-version-min=10.0 -dead_strip -Xlinker -object_path_lto -Xlin
ker /Users/sjm/Library/Developer/Xcode/DerivedData/Runner-fmfgxmbciwytkiaoztfoxtepvsaw/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/OneSignalNotificationServiceExtension.build/Objects-normal/x86_64/OneSignalNotificationServiceExtension_lto.o -Xlinker -export_dynamic -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -fapplication-extension -ObjC -ldevice_info -lflutter_secure_storage -llocal_auth -llocation -lonesignal -lopen_file -lpackage_info -lpath_provider -lshared_preferences -luni_links -lurl_launcher -framework Flutter -framework OneSignal -framework SystemConfiguration -framework UIKit -framework UserNotifications -ObjC -framework OneSignal -framework SystemConfiguration -framework UIKit -framework UserNotifications -e _NSExtensionMain -Xlinker -sectcreate -Xlinker __TEXT -Xlinker __entitlements -Xlinker /Users/sjm/Library/Developer/Xcode/DerivedData/Runner-fmfgxmbciwytkiaoztfoxtepvsaw/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/OneSignalNotificationServiceExtension.build/OneSignalNotificationServiceExtension.appex-Simulated.xcent -lPods-OneSignalNotificationServiceExtension -Xlinker -dependency_info -Xlinker /Users/sjm/Library/Developer/Xcode/DerivedData/Runner-fmfgxmbciwytkiaoztfoxtepvsaw/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/OneSignalNotificationServiceExtension.build/Objects-normal/x86_64/OneSignalNotificationServiceExtension_dependency_info.dat -o /Users/sjm/work/mm/mms4/mobile/build/ios/Debug-iphonesimulator/OneSignalNotificationServiceExtension.appex/OneSignalNotificationServiceExtension
           ld: warning: directory not found for option '-L/Users/sjm/work/mm/mms4/mobile/build/ios/Debug-iphonesimulator/location'
           ld: library not found for -llocation
           clang: error: linker command failed with exit code 1 (use -v to see invocation)

           === BUILD TARGET path_provider OF PROJECT Pods WITH CONFIGURATION Debug ===

           Check dependencies

           Libtool /Users/sjm/work/mm/mms4/mobile/build/ios/Debug-iphonesimulator/path_provider/libpath_provider.a normal x86_64
               cd /Users/sjm/work/mm/mms4/mobile/ios/Pods
               export IPHONEOS_DEPLOYMENT_TARGET=8.0
               export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/sjm/Development/flutter/bin:/Users/sjm/.fastlane/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:."
               /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only x86_64 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk -L/Users/sjm/work/mm/mms4/mobile/build/ios/Debug-iphonesimulator/path_provider -filelist /Users/sjm/Library/Developer/Xcode/DerivedData/Runner-fmfgxmbciwytkiaoztfoxtepvsaw/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/path_provider.build/Objects-normal/x86_64/path_provider.LinkFileList -o /Users/sjm/work/mm/mms4/mobile/build/ios/Debug-iphonesimulator/path_provider/libpath_provider.a

I can include the total flutter run -v output somewhere (it's lengthy) if you tell me where..

I am not sure why it's do an clang thing THEN in the middle of the project builds?? I think that's the culprit ..

Environment

  1. 1.0.3
  2. pub and then followed the instructions

Steps to Reproduce Issue:

  1. Install the OneSignal Flutter SDK using pub into your project
  2. Add a TON of pubspec.yaml dependencies .. lots of which have Pod things..
  3. flutter clean ; flutter run -d XXXX (simulator)

The odd thing is that the first time we run we may get 5/6 "ld" errors.. but each run after reduces that. Sometimes we get 0 and once it's zero we're good again until the next "flutter upgrade" or something that adds a pod .. then all hell breaks loose again . :(

I have this reproducible right now -- can't fix actually ..

Here is our pubspec.yaml file:

name: MissionMode
description: Flutter MissionMode Mobile

# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# Read more about versioning at semver.org.
version: 1.4.5

environment:
  sdk: '>=2.0.0-dev.68.0 <3.0.0'

dependencies:
  charts_flutter: ^0.5.0
  device_info: ^0.3.0
  dynamic_theme: ^1.0.0
  fluro: ^1.3.4
  flutter_secure_storage: ^3.1.1
  flutter_typeahead: ^0.4.0
  # get_version: ^0.0.6
  graphql_flutter: ^1.0.0-alpha.10
  flutter_html: ^0.8.2
  http: ^0.12.0
  icons_helper:
    git:
      url: git://github.com/sjmcdowall/icons_helper
  # image_picker: ^0.4.10
  local_auth: ^0.3.0
  location: ^1.4.0
  native_widgets: ^0.1.1+1
  open_file: ^1.1.1
  package_info: ^0.3.2
  page_view_indicator: ^0.3.0+1
  path_provider: ^0.4.1
  rxdart: ^0.18.1
  scoped_model: ^1.0.1
  shared_preferences: ^0.4.2
  uni_links: ^0.1.3
  url_launcher: ^4.0.1
  uuid: ^1.0.3
  intl: ^0.15.7
  onesignal: ^1.0.0

  flutter:
    sdk: flutter

  # The following adds the Cupertino Icons font to your application.
  # Use with the CupertinoIcons class for iOS style icons.
  cupertino_icons: ^0.1.2

dev_dependencies:
  flutter_test:
    sdk: flutter

# For information on the generic Dart part of this file, see the
# following page: https://www.dartlang.org/tools/pub/pubspec

# The following section is specific to Flutter.
flutter:
  # The following line ensures that the Material Icons font is
  # included with your application, so that you can use the icons in
  # the material Icons class.
  uses-material-design: true

  # To add assets to your application, add an assets section, like this:
  assets:
    - assets/images/background.png
    - assets/images/MissionMode_Logo.png
    - assets/images/MissionMode_Full_logo_white.png
    - assets/images/MissionMode_Full_logo.png
    - assets/images/MissionMode_Logo.png
    - assets/images/triangle-bg.png
    - assets/images/Envelope-PNG-File-354x279.png
    - assets/images/wand-1024_1280.png
  # To add assets to your application, add an assets section, like this:
  # assets:
  #  - images/a_dot_burr.jpeg
  #  - images/a_dot_ham.jpeg
  # An image asset can refer to one or more resolution-specific "variants", see
  # https://flutter.io/assets-and-images/#resolution-aware.
  # For details regarding adding assets from package dependencies, see
  # https://flutter.io/assets-and-images/#from-packages
  # To add custom fonts to your application, add a fonts section here,
  # in this "flutter" section. Each entry in this list should have a
  # "family" key with the font family name, and a "fonts" key with a
  # list giving the asset and other descriptors for the font. For
  # example:
  # fonts:
  #   - family: Schyler
  #     fonts:
  #       - asset: fonts/Schyler-Regular.ttf
  #       - asset: fonts/Schyler-Italic.ttf
  #         style: italic
  #   - family: Trajan Pro
  #     fonts:
  #       - asset: fonts/TrajanPro.ttf
  #       - asset: fonts/TrajanPro_Bold.ttf
  #         weight: 700
  #
  # For details regarding fonts from package dependencies,
  # see https://flutter.io/custom-fonts/#from-packages

Here is the Podfile from /ios

# Uncomment this line to define a global platform for your project
platform :ios, '10.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

def parse_KV_file(file, separator='=')
  file_abs_path = File.expand_path(file)
  if !File.exists? file_abs_path
    return [];
  end
  pods_ary = []
  skip_line_start_symbols = ["#", "/"]
  File.foreach(file_abs_path) { |line|
      next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ }
      plugin = line.split(pattern=separator)
      if plugin.length == 2
        podname = plugin[0].strip()
        path = plugin[1].strip()
        podpath = File.expand_path("#{path}", file_abs_path)
        pods_ary.push({:name => podname, :path => podpath});
      else
        puts "Invalid plugin specification: #{line}"
      end
  }
  return pods_ary
end

target 'Runner' do
  # SJM -- For Swift plugins
  # use_frameworks!

  # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock
  # referring to absolute paths on developers' machines.
  system('rm -rf .symlinks')
  system('mkdir -p .symlinks/plugins')

  # Flutter Pods
  generated_xcode_build_settings = parse_KV_file('./Flutter/Generated.xcconfig')
  if generated_xcode_build_settings.empty?
    puts "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter packages get is executed first."
  end
  generated_xcode_build_settings.map { |p|
    if p[:name] == 'FLUTTER_FRAMEWORK_DIR'
      symlink = File.join('.symlinks', 'flutter')
      File.symlink(File.dirname(p[:path]), symlink)
      pod 'Flutter', :path => File.join(symlink, File.basename(p[:path]))
    end
  }

  # Plugin Pods
  plugin_pods = parse_KV_file('../.flutter-plugins')
  plugin_pods.map { |p|
    symlink = File.join('.symlinks', 'plugins', p[:name])
    File.symlink(p[:path], symlink)
    pod p[:name], :path => File.join(symlink, 'ios')
  }
end

target 'OneSignalNotificationServiceExtension' do
  pod 'OneSignal', '>= 2.9.3', '< 3.0'
end

post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      config.build_settings['SWIFT_VERSION'] = '4.0'
      config.build_settings['ENABLE_BITCODE'] = 'NO'
    end
  end
end

This is rather a show stopper for us right now as we're stuck ..

Cheers!

Unable to distribute the app through development method

Description:

Hi, I have a Flutter project with the Flutter OneSignal implementation. It runs fine in debug mode but when I try to distribute it in Xcode it fails and gives the following error: Failed to verify bitcode in OneSignal.framework/OneSignal: error: Bundle only contains bitcode-marker.

Environment

Xcode 10, iOS 12, Flutter v0.9.4
pod 'OneSignal', '>= 2.8.5', '< 3.0'
pub onesignal: ^1.0.2

Steps to Reproduce Issue:

  1. create flutter app.
  2. implement OneSignal.
  3. run flutter build ios
  4. archive in Xcode
  5. try to distribute through development

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.