BranchMetrics / capacitor-branch-deep-links

Capacitor plugin for branch.io deep links
MIT License
32 stars 43 forks source link

Android: undefined Intent #10

Open josh-m-sharpe opened 4 years ago

josh-m-sharpe commented 4 years ago

Per the readme, I added:

+   @Override
+   protected void onNewIntent(Intent intent) {
+     this.setIntent(intent);
+     super.onNewIntent(intent);
+   }

to my activity, and now I see build errors like:

   protected void onNewIntent(Intent intent) {
                              ^
  symbol:   class Intent
  location: class MainActivity

Is the README incomplete? Maybe missing an import statement?

mikejpeters commented 4 years ago

Yes I forgot to put in the readme that you should add: import android.content.Intent;

josh-m-sharpe commented 4 years ago

I've been seeing issues with android links this morning (per my other ticket). Do you think it's better to use master now?