Firebase getToken is deprecated

If you are still using old style to get FireBase token, it is time to change it.

Old way

String token = FirebaseInstanceId.getInstance().getToken();

New way

				.addOnCompleteListener(new OnCompleteListener<InstanceIdResult>() {
					public void onComplete(@NonNull Task<InstanceIdResult> task) {
						if (!task.isSuccessful()) {
							Log.w("FB token e: ", "getInstanceId failed", task.getException());

						// Get new Instance ID token
						String token = task.getResult().getToken();
						Log.d("FB token", token);
						if (!token.equals("")) {
// send to your server						}

Flutter video player example

Very easy Flutter video player example, using chewie and and video_player library.

The app plays video from remote HTTP url and it plays in portrait mode, when you exit video player it maintains portrait mode in your device.

In your main function, make sure you run the app in portrait mode,

void main() {

      .then((_) {

Download source code

iOS-iPadOS app store submission checklist and how to

When you are ready to submit your app to App Store for TestFlight or App Store you want to make sure few things are available to you.

  1. First you need a developer account or an Apple ID which has privilege to developer resources ask your Team Admin for more help.
  2. There are two websites one for creating app bundle, certificates and another one where you create your App and upload its assets and binary.
  3. After login to create an app first.

In this step you need few more information.

4. After creating the app you can now go to app detail page where you will add more information.

Click on the left sidebar Prepare for Submission and add following information

Version Information

  • Promotional Text
  • Description
  • Keywords 
  • Support URL
  • Marketing URL (Optional)

General App Information

  • Version
  • Copyright

App Review Information

If your app needs username and password to access then you need to give working username and password here.

5. Go to App Information under General. Here you can set your app Localizable Information, app category(primary and secondary), app content rights and age rating. Finally there is a license agreement, usually you don’t have to edit it.

6. Click on the Pricing and Availability link and set your app’s pricing, if it is free then you don’t have to do anything. Here also you can choose which app store your app will be available, usually you don’t have to do anything here.

7. Set your app privacy information from App Privacy

These are the main things you need to get your app on the app store besides a well tested binary you develop on your Xcode.