1

I trying to see if my app could be done in instant app. My app is based on taking the temperature sent by NFC from my ship.

Unfortunately the FAQ of android developers site says that only these following few permissions a available.

https://developer.android.com/topic/instant-apps/faqs.html

That this means that the NFC permission isn't possible?

Thank you in advance for your answer

Volo
  • 28,673
  • 12
  • 97
  • 125
  • Possible duplicate of [how to implement google instant app with NFC in android studio](https://stackoverflow.com/questions/44325441/how-to-implement-google-instant-app-with-nfc-in-android-studio) – TWL Oct 26 '17 at 23:25

1 Answers1

4

The documentation clearly states that:

Instant apps can use the Android permissions shown in the list that follows. Any permission not shown in the list is not available to instant apps.

So no, obtaining NFC permission (android.permission.NFC) is not possible.

Josef Adamcik
  • 5,620
  • 3
  • 36
  • 42
  • So what if the full app uses NFC - is it okay to have the NFC permission in the manifest so it can be used by the full app, so long as that permission (and related API) are not invoked while it's running in Instant App mode? – wildcat12 Aug 17 '20 at 17:34
  • I found an answer essentially saying that yes, you can declare different permissions for your installed app vs. Instant App, there's just a little nuance to it. stackoverflow.com/a/54097352/1119656 – wildcat12 Aug 17 '20 at 19:10