bubble-whatsapp-status 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -76,7 +76,11 @@ class WhatsAppStatusModule : Module() {
|
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
try {
|
|
79
|
-
|
|
79
|
+
context.grantUriPermission("com.whatsapp", uri, Intent.FLAG_GRANT_READ_URI_PERMISSION)
|
|
80
|
+
// The official Share-to-Status flow starts the intent FOR RESULT.
|
|
81
|
+
// With plain startActivity, WhatsApp ignores SHARE_TO_STATUS and just
|
|
82
|
+
// opens its main screen.
|
|
83
|
+
activity.startActivityForResult(intent, 0)
|
|
80
84
|
} catch (e: android.content.ActivityNotFoundException) {
|
|
81
85
|
return@AsyncFunction mapOf("opened" to false, "reason" to "WHATSAPP_NOT_INSTALLED")
|
|
82
86
|
} catch (e: Exception) {
|