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

Upgrade to use Flutter embedding V2 #480

Closed
westy92 opened this issue Sep 8, 2021 · 30 comments
Closed

Upgrade to use Flutter embedding V2 #480

westy92 opened this issue Sep 8, 2021 · 30 comments

Comments

@westy92
Copy link
Contributor

westy92 commented Sep 8, 2021

Description:

A red warning when building:

The plugin `onesignal_flutter` uses a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it since a future release of Flutter will
remove these deprecated APIs.
If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration.

Environment

Steps to Reproduce Issue:

  1. Install the OneSignal Flutter SDK using pub into your project
  2. Build with latest Flutter (2.5.0)

Anything else:

@HeynSekk
Copy link

Me too. Today, when I run flutter pub get command, it show that your plugin use a deprecated API of Android embedding and the author of the plugin need to migrate it to Android V2 embedding. It say Flutter may remove those deprecated API in the future.

Here is the web page it redirected me.
https://flutter.dev/docs/development/packages-and-plugins/plugin-api-migration

So do you have a plan to migrate your plugin? If yes, how long might we have to wait?

Anyway, thanks for your plugin. It is very useful and I use it in my Flutter project.

I will be looking forward to your reply. Have a great day.

@jesselpereira
Copy link

Same issue.

@mhatout
Copy link

mhatout commented Sep 12, 2021

hope for a fix soon

@TheAlphamerc
Copy link

Getting same warning while compiling the project. I am using onesignal_flutter: ^3.2.3 and Flutter 2.5.0 • channel stable

The plugin `onesignal_flutter` uses a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it since a future release of Flutter will remove these deprecated APIs.
If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration.
exit code 0

@mamonraab
Copy link

same here

@minhbaovn1210
Copy link

Hope some savior help soon.

@tayyipozr
Copy link

 👍

@ryanaidilp
Copy link

Same here

@joehenrique7
Copy link

O mesmo, alguém saberia se irão atender essa demanda, qual o tempo médio?

@gireeshkottayam
Copy link

Same Warning !

The plugins facebook_audience_network, flutter_statusbarcolor_ns, flutter_webview_plugin, notification_permissions, onesignal_flutter, sms_autofill use a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if these plugins support the Android V2 embedding. Otherwise, consider removing them since a future release of Flutter will remove these deprecated
APIs.
If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration.

@luis901101
Copy link
Contributor

luis901101 commented Sep 14, 2021

Hi. I just made a PR 486 with the v2 embedding migration.
In the mean time you can use:

onesignal_flutter: #^3.2.3
    git:
      url: https://github.com/luis901101/OneSignal-Flutter-SDK.git
      ref: migrate_android_embedding_v2

@gucciroddman
Copy link

Hi. I just made a PR 486 with the v2 embedding migration.
In the mean time you can use:

onesignal_flutter: #^3.2.3
    git:
      url: https://github.com/luis901101/OneSignal-Flutter-SDK.git
      ref: migrate_android_embedding_v2

Hi, I'm facing issues with the following plugins too ( facebook_audience_network, flutter_statusbarcolor_ns,
flutter_webview_plugin, sms_autofill` ) how can i get it to work? i use the above code for one signal and it's working. thank you

@luis901101
Copy link
Contributor

@gucciroddman all of that plugins should migrate to android v2 embedding anytime soon. Anyway you can use these plugins without problem… the message you see is just a Deprecate warning, Flutter team will not do a breaking change like that in the near future… I hope…

@AlirezaDaryani
Copy link

🧐

@gucciroddman
Copy link

gucciroddman commented Sep 20, 2021 via email

@joaobaronisilva
Copy link

same here

@giullianocht
Copy link

Same here

@depeiwang
Copy link

插眼,如果修好了请踢我一脚,谢谢🙏

@joaobaronisilva
Copy link

插眼,如果修好了请踢我一脚,谢谢🙏

I think using #486 branch instead current main can help u

@muhammadsaddamnur
Copy link

Yuhuuu same here

@imasubmarine
Copy link

Same here

@OHeroJ
Copy link

OHeroJ commented Oct 9, 2021

same here

3 similar comments
@harkairt
Copy link

same here

@adrianFarkas
Copy link

same here

@yunuskaygun
Copy link

same here

@joaobaronisilva
Copy link

Guys, the #486 has already been merged into main branch. Upgrading the dependecy to 3.2.3 version can solve this problem. I think the issue should be closed.

@cihadturhan
Copy link

@joaobaronisilva
I've just checked version 3.2.3.
Nope, it's still giving that warning.

@UMUTBAYGUT
Copy link

same here

@priyeshbhuva
Copy link

Guys, the #486 has already been merged into main branch. Upgrading the dependecy to 3.2.3 version can solve this problem. I think the issue should be closed.

Still getting the warning

@nan-li
Copy link
Contributor

nan-li commented Oct 27, 2021

Hi all, #486 is now in Release 3.2.4.

@nan-li nan-li closed this as completed Nov 4, 2021
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