The solution is to link a native module with the React Native application. The Android Web API intent is intended to do a hand-off from your browser to the Square POS application, not from application to application. The intent:#Intent we use in the code isn’t going to work from within React Native, since it is used for going from a web browser on an Android device into the Square POS app. If (sendIntent.resolveActivity(getPackageManager()) != null) Possible solution: Verify that the intent will resolve to an activity SendIntent.putExtra(Intent.EXTRA_TEXT, textMessage) Syntax: // Create the text message with a string But if the result is not null, there is at least one app that can handle the intent therefore, it is safe to call startActivity ( ). If you call the resolve and the result is null, do not use the intent and, if possible, you should disable the feature that issues the intent because it is not safe. There is a way to verify the error, the activity will receive the intent, call on your intent object. To fix this error, you will need to identify and verify the error. The launching or call of the app may fail because of any reasons mentioned above. Settings put into place by an administrator.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |