You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current behavior:
The Web Intent package doesn't allow extras.
Expected behavior:
Passing extra parameters to startActivity method.
Other information:
My goal is to create a "native share", like the example from the Android documentation:
IntentsendIntent = newIntent();
sendIntent.setAction(Intent.ACTION_SEND);
sendIntent.putExtra(Intent.EXTRA_TEXT, "This is my text to send.");
sendIntent.setType("text/plain");
startActivity(sendIntent);
As we can see, there's an action, an extra (EXTRA_TEXT) and a type. This can be achieved from the cordova plugin with something like this (from the README of the repo):
window.plugins.intentShim.startActivity({action: 'android.intent.action.SEND',extras: {'android.intent.extra.TEXT': 'My text here'}});
Now, looking at the declaration of the startActivity method from ionic native package we can see that the url is required (why?) and there's no way to define extras.
option: boolean? What? And all the "convenience constants" like ACTION_SEND and EXTRA_TEXT are declareted but not filled (but maybe they are somewhere else).
I know it's marked as "Beta", but I think it hasn't the basic functionalities. Should I use the cordova plugin "without" the ionic native part?
The text was updated successfully, but these errors were encountered:
I'm submitting a ...
[x] bug report
[ ] feature request
Current behavior:
The
Web Intent
package doesn't allow extras.Expected behavior:
Passing extra parameters to
startActivity
method.Other information:
My goal is to create a "native share", like the example from the Android documentation:
As we can see, there's an action, an extra (EXTRA_TEXT) and a type. This can be achieved from the cordova plugin with something like this (from the README of the repo):
Now, looking at the declaration of the
startActivity
method from ionic native package we can see that the url is required (why?) and there's no way to define extras.The only method which has an
extras
field issendBroadcast
, but I think it's a little weird:option: boolean
? What? And all the "convenience constants" likeACTION_SEND
andEXTRA_TEXT
are declareted but not filled (but maybe they are somewhere else).I know it's marked as "Beta", but I think it hasn't the basic functionalities. Should I use the cordova plugin "without" the ionic native part?
The text was updated successfully, but these errors were encountered: