firebase_messaging iOS problem

221 views
Skip to first unread message

Andrew King

unread,
Mar 4, 2020, 11:15:30 AM3/4/20
to Flutter Development (flutter-dev)
Hello
I'm trying to get firebase_messaging to work before incorporating it into other projects. It runs fine in Android, but not iOS. I follow the steps in firebase_messaging readme and this tutorial (https://medium.com/@SebastianEngel/easy-push-notifications-with-flutter-and-firebase-cloud-messaging-d96084f5954f) and I've looked at others.  When I run the the project in Android Studio the build process generates an app that opens and closes immediately, with no feedback about what went wrong. My knowledge of Xcode is virtually 0 so I don't know where to look for debugging help.

flutter doctor -v
[✓] Flutter (Channel unknown, v1.12.16, on Mac OS X 10.15.3 19D76, locale en-GB)
    • Flutter version 1.12.16 at /Users/andrew/development/flutter
    • Framework revision 37f9c54116 (3 months ago), 2019-11-27 11:33:38 -0800
    • Engine revision fad1b23c42
    • Dart version 2.7.0

 
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /Users/andrew/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_212-release-1586-b4-5784211)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.3.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.3.1, Build version 11C504
    • CocoaPods version 1.9.0

[✓] Android Studio (version 3.6)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 44.0.2
    • Dart plugin version 192.7761
    • Java version OpenJDK Runtime Environment (build 1.8.0_212-release-1586-b4-5784211)

[✓] Connected device (1 available)
    • Reflex iPad • 407429d9f9469f75ddb180966bc82e591125afeb • ios • iOS 13.3.1

• No issues found!

Does anyone know what I can try next?

Thanks for any help

Andy Greenshaw

unread,
Mar 4, 2020, 11:23:13 AM3/4/20
to Andrew King, Flutter Development (flutter-dev)
Run the iOS/ workspace in Xcode, you should get more debug) have you added any required permissions to the Info.plist and added the Google .plist to the project - the Xcode project, NOT just in Android Studio)?


From: flutt...@googlegroups.com <flutt...@googlegroups.com> on behalf of Andrew King <aki...@gmail.com>
Sent: Wednesday, March 4, 2020 4:15:30 PM
To: Flutter Development (flutter-dev) <flutt...@googlegroups.com>
Subject: firebase_messaging iOS problem
 
--
You received this message because you are subscribed to the Google Groups "Flutter Development (flutter-dev)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flutter-dev/b6d67155-9171-4011-964f-2cc65c5a3461%40googlegroups.com.

Andrew King

unread,
Mar 4, 2020, 11:27:33 AM3/4/20
to Flutter Development (flutter-dev)
I should have said. I go through all the steps with certificates, p12 upload, signing and adding capabilities. My starting point is the standard New Flutter Project number incrementor app. That runs fine but just adding firebase_messaging 6.0.12 to dependencies in pubspec.yaml causes the run process to fail - even before I change the code.
Message has been deleted

Andrew King

unread,
Mar 4, 2020, 12:10:51 PM3/4/20
to Flutter Development (flutter-dev)
With Xcode debugging I could see that I'd forgotten to include GoogleService-info.plist. Now it runs and I've got a Firebase messaging token - I can move onto the next step. Thanks very much Andy
To unsubscribe from this group and stop receiving emails from it, send an email to flutt...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages