@capgo/capacitor-android-sms-retriever 8.0.12 → 8.1.0

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.
package/README.md CHANGED
@@ -1,13 +1,28 @@
1
1
  # @capgo/capacitor-android-sms-retriever
2
2
 
3
- <a href="https://capgo.app/"><img src="https://capgo.app/readme-banner.svg?repo=Cap-go/capacitor-android-sms-retriever" alt="Capgo - Instant updates for Capacitor" /></a>
3
+ Read one-time codes from SMS on Android without the SMS permission, using Google Play services SMS Retriever, and let users pick their phone number with Phone Number Hint. Smoother sign-in and verification flows.
4
+
5
+ <a href="https://capgo.app/?ref=plugin_android_sms_retriever"><img src="https://capgo.app/readme-banner.svg?repo=Cap-go/capacitor-android-sms-retriever" alt="Capgo - Instant updates for Capacitor" /></a>
4
6
 
5
7
  <div align="center">
6
- <h2><a href="https://capgo.app/?ref=plugin_android_sms_retriever">Get instant updates for your app with Capgo</a></h2>
7
- <h2><a href="https://capgo.app/consulting/?ref=plugin_android_sms_retriever">Missing a feature? We can build the plugin for you</a></h2>
8
+ <p><b>Capgo</b>: push fixes to your Capacitor users in minutes, build signed iOS and Android apps without a Mac, and roll back in one click.</p>
9
+ <h2><a href="https://capgo.app/register/?ref=plugin_android_sms_retriever">➡️ Get started for free</a></h2>
10
+ <p>14-day unlimited free trial. No credit card required</p>
11
+ <p><a href="https://capgo.app/consulting/?ref=plugin_android_sms_retriever">Missing a feature? We'll build the plugin for you 💪</a></p>
8
12
  </div>
9
13
 
10
- Android-only Capacitor plugin for Google Play services SMS Retriever and Phone Number Hint APIs.
14
+ <p align="center">
15
+ <img src="https://raw.githubusercontent.com/Cap-go/capacitor-android-sms-retriever/main/assets/github-social-preview.png" alt="@capgo/capacitor-android-sms-retriever for Capacitor apps" width="300" />
16
+ </p>
17
+
18
+ ## Key features
19
+
20
+ - **SMS Retriever**: `startWatch()` waits for one verification SMS and emits `smsReceived`, with `smsRetrieverTimeout` and `smsRetrieverError` events.
21
+ - **No SMS permission**: Google Play services delivers the matching message, so you do not request `READ_SMS`.
22
+ - **App hash**: `getHashString()` returns the 11-character hash your server adds to the SMS.
23
+ - **Phone Number Hint**: `getPhoneNumber()` shows the system picker and returns the selected SIM number.
24
+ - **Stop anytime**: `stopWatch()` cancels the active watch.
25
+ - **Platforms**: Android. Android only. iOS and web are not supported.
11
26
 
12
27
  ## Install
13
28
 
@@ -25,7 +25,7 @@ public class AndroidSmsRetrieverPlugin extends Plugin {
25
25
  private static final String EVENT_SMS_ERROR = "smsRetrieverError";
26
26
  private static final String STATUS_DONE = "SMS_RETRIEVER_DONE";
27
27
 
28
- private final String pluginVersion = "8.0.12";
28
+ private final String pluginVersion = "8.1.0";
29
29
  private AndroidSmsRetriever implementation;
30
30
  private ActivityResultLauncher<IntentSenderRequest> phoneNumberHintLauncher;
31
31
  private PluginCall pendingPhoneNumberCall;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-android-sms-retriever",
3
- "version": "8.0.12",
3
+ "version": "8.1.0",
4
4
  "description": "Capacitor plugin for Android SMS Retriever and Phone Number Hint APIs.",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",