thingsboard/flutter_thingsboard_pe_app

Push notifications are not working with V3.63PE

Closed this issue · 1 comments

Hello,

Can you help me?

the app is working but I cannot make the push notifications to work. I configured the web server we have according to the documentation, however in V3.6.3 I don't have the option mentioned. Is it necessary to update?

From documentation:
image

On my instance (I don't have the checkbox), the key is uploaded:
image

I followed these steps (1 and 2) as mentioned in the documentation:

image

I receive an exception with iOS

image

This is my firebase_options.dart file. Is it correct?

                    `// File generated by FlutterFire CLI.
                    // ignore_for_file: lines_longer_than_80_chars, avoid_classes_with_only_static_members
                    import 'package:firebase_core/firebase_core.dart' show FirebaseOptions;
                    
                    /// Default [FirebaseOptions] for use with your Firebase apps.
                    ///
                    /// Example:
                    /// ```dart
                    /// import 'firebase_options.dart';
                    /// // ...
                    /// await Firebase.initializeApp(
                    ///   options: DefaultFirebaseOptions.currentPlatform,
                    /// );
                    /// ```
                    class DefaultFirebaseOptions {
                      static FirebaseOptions get currentPlatform {
                        throw UnsupportedError(
                          'Firebase have not been configured - '
                          'you can reconfigure this by running the FlutterFire CLI again.',
                        );
                      }
                    }`
                    \

In firebase website seems to be correct

image

This is my phone:
image

This is the platform when I try to send a notification
image

Thanks!

Hello,

The firebase_options.dart has not been configured properly. Seems it's connected with the Unsupported error you have received for IOS. I never saw such an error before, but you can try to delete firebase_options.dart and run flutterfire configure again. Hope it will help.