Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firebase core - how to use it #618

Closed
Stuggy opened this issue Sep 8, 2023 · 6 comments
Closed

Firebase core - how to use it #618

Stuggy opened this issue Sep 8, 2023 · 6 comments

Comments

@Stuggy
Copy link

Stuggy commented Sep 8, 2023

Sorry for not being able to work it out but how do you add data to firebase? I had it working a while ago using another package https://pub.dev/packages/firebase_auth_rest but decided to switch to the flutter-tizen package.

The example show how to initialize the FirebaseApp but I can't work out how to save any data for example.

The flutter-tizen implementation is based on https://github.com/FirebaseExtended/flutterfire_desktop/tree/main. Do I have to add other packages?

A very basic example would be appreciated.

@swift-kim
Copy link
Member

AFAIK, firebase_core_tizen is a base package for supporting other FlutterFire plugins. firebase_auth_tizen and firebase_functions_tizen are currently under review, but there's currently no package for Tizen that supports "saving data" to the cloud (because flutterfire_desktop doesn't support it either).

@daeyeon @hs0225 Do you have any comments?

@Stuggy
Copy link
Author

Stuggy commented Sep 11, 2023

Ok thanks for the reply but I have been saving to the cloud using I think the package I mentioned above. I think it wasn't specifically Tizen but was Dart and worked. Now after coming back to my app I am getting errors that probably are not specifically TIzen but related to updated packages I assume. I'll copy and paste the errors.

@Stuggy
Copy link
Author

Stuggy commented Sep 11, 2023

flutter-tizen run
url_launcher_tizen is available on pub.dev. Did you forget to add to pubspec.yaml?
Launching tizen\flutter\generated_main.dart on Tizen SM-R820 in debug mode...`
lib/status.dart:22:23: Error: Couldn't find constructor 'Jiffy'.
    var currentTime = Jiffy(DateTime.now());
                      ^^^^^
lib/status.dart:36:23: Error: Couldn't find constructor 'Jiffy'.
    var timeElapsed = Jiffy('${hour.toInt()}:${minute.toInt()}', 'hh:mm');
                      ^^^^^
/C:/AppData/Local/Pub/Cache/hosted/pub.dev/firebase_database_rest-1.0.3/lib/src/rest/models/stream_event.freezed.dart:25:13: Error: Method not found: 'FallThroughError'.
      throw FallThroughError();
            ^^^^^^^^^^^^^^^^`

The main error is the 'FallThroughError'. that I haven't been able to solve yet. I did not have this error before so I'm thinking it cam e from some updated packages.

@Stuggy
Copy link
Author

Stuggy commented Sep 11, 2023

I did a temporary fix by replaced FallThroughError with UnspecifiedError.

On another front I can't get the Samsung certificate manager to create a Samsung certificate. I just get a blank screen on the login. Onward I guess...

@Stuggy Stuggy closed this as completed Sep 11, 2023
@swift-kim
Copy link
Member

@Stuggy Tizen Certificate Manager is trash and often broken. If you're on Windows, please refer to the following link and try another machine (macOS or Linux) if available (or just wait until the issue gets fixed).

https://forum.developer.samsung.com/t/trying-to-log-in-to-get-a-distribute-certificate

Also as far as I heard our member @daeyeon is working on a Tizen version of the firebase_database plugin. I hope it will be available soon.

@Stuggy
Copy link
Author

Stuggy commented Sep 12, 2023

Thanks for the idea. I had considered trying something like that. I have Ubuntu on one device that I can try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants