Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: #send does not resolve after sending on Android with the Google messenger app. #27

Open
jaurand opened this issue Oct 11, 2024 · 0 comments

Comments

@jaurand
Copy link

jaurand commented Oct 11, 2024

Capacitor version:

Run npx cap doctor:

Installed Dependencies:

  Latest Dependencies:

  @capacitor/cli: 6.1.2
  @capacitor/core: 6.1.2
  @capacitor/android: 6.1.2
  @capacitor/ios: 6.1.2

Installed Dependencies:

  @capacitor/android: 6.1.2
  @capacitor/core: 6.1.2
  @capacitor/cli: 6.1.2
  @capacitor/ios: 6.1.2

Library version:

  • other: "^6.0.0"

Your Plugin Configuration

[
	{
		"pkg": "@byteowls/capacitor-sms",
		"classpath": "com.byteowls.capacitor.sms.SmsManagerPlugin"
	},
	{
		"pkg": "@capacitor-community/contacts",
		"classpath": "getcapacitor.community.contacts.ContactsPlugin"
	},
	{
		"pkg": "@capacitor-community/file-opener",
		"classpath": "com.ryltsov.alex.plugins.file.opener.FileOpenerPlugin"
	},
	{
		"pkg": "@capacitor-community/intercom",
		"classpath": "com.getcapacitor.community.intercom.IntercomPlugin"
	},
	{
		"pkg": "@capacitor/app",
		"classpath": "com.capacitorjs.plugins.app.AppPlugin"
	},
	{
		"pkg": "@capacitor/browser",
		"classpath": "com.capacitorjs.plugins.browser.BrowserPlugin"
	},
	{
		"pkg": "@capacitor/clipboard",
		"classpath": "com.capacitorjs.plugins.clipboard.ClipboardPlugin"
	},
	{
		"pkg": "@capacitor/device",
		"classpath": "com.capacitorjs.plugins.device.DevicePlugin"
	},
	{
		"pkg": "@capacitor/dialog",
		"classpath": "com.capacitorjs.plugins.dialog.DialogPlugin"
	},
	{
		"pkg": "@capacitor/filesystem",
		"classpath": "com.capacitorjs.plugins.filesystem.FilesystemPlugin"
	},
	{
		"pkg": "@capacitor/keyboard",
		"classpath": "com.capacitorjs.plugins.keyboard.KeyboardPlugin"
	},
	{
		"pkg": "@capacitor/local-notifications",
		"classpath": "com.capacitorjs.plugins.localnotifications.LocalNotificationsPlugin"
	},
	{
		"pkg": "@capacitor/preferences",
		"classpath": "com.capacitorjs.plugins.preferences.PreferencesPlugin"
	},
	{
		"pkg": "@capacitor/push-notifications",
		"classpath": "com.capacitorjs.plugins.pushnotifications.PushNotificationsPlugin"
	},
	{
		"pkg": "@capacitor/share",
		"classpath": "com.capacitorjs.plugins.share.SharePlugin"
	},
	{
		"pkg": "@capacitor/splash-screen",
		"classpath": "com.capacitorjs.plugins.splashscreen.SplashScreenPlugin"
	},
	{
		"pkg": "@capacitor/status-bar",
		"classpath": "com.capacitorjs.plugins.statusbar.StatusBarPlugin"
	},
	{
		"pkg": "@capacitor/toast",
		"classpath": "com.capacitorjs.plugins.toast.ToastPlugin"
	},
	{
		"pkg": "@capawesome/capacitor-badge",
		"classpath": "io.capawesome.capacitorjs.plugins.badge.BadgePlugin"
	},
	{
		"pkg": "capacitor-blob-writer",
		"classpath": "com.equimaps.capacitorblobwriter.BlobWriter"
	}
]

Affected Platform(s):

  • Android
    • Version/API Level: 34
    • Device Model: Samsung S23, SM-S911U
    • Content of your AndroidManifest.xml
    <provider
        android:name="androidx.core.content.FileProvider"
        android:authorities="${applicationId}.fileprovider"
        android:exported="false"
        android:grantUriPermissions="true">
        <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/file_paths" />
    </provider>
</application>

<!-- Permissions -->

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.WRITE_CONTACTS" />
<uses-permission android:name="android.permission.SEND_SMS" />

### Current Behavior
On Android 14 with the Google messaging app as your default, call `SmsManager.send` with a phone number and message text. The SMS client opens correctly.
Send the text message.
Notice the messaging app stays in the foreground.  The Promise from the send call does not resolve.
The only option is to click the back button on the messaging app which rejects the promise with a cancel message.


### Expected Behavior
The Promise should resolve and control should return to the Capacitor app when the message is sent.


### Sample Code or Sample Application Repo
`SmsManager.send({ numbers: [number], text });`


### Reproduction Steps
Listed in the "Current Behavior" section.

### Other Information
<!-- List any other information that is relevant to your issue. Stack traces, related issues, suggestions on how to fix, Stack Overflow links, forum links, etc. -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant