Giter VIP home page Giter VIP logo

react-native-sms-x's Issues

undefined is not an object(evaluating '_reactNativeSmsX.default.send')

Hi everyone I get this error when I click sends SMS button.

sendSMSFunction() {
    SendSMS.send(123, "+95912345678", "Hey.., this is me!\nGood to see you. Have a nice day.",
      (msg)=>{
        ToastAndroid.show(msg, ToastAndroid.SHORT);
      }
    );
  }

i am using code from example.
Thanks
react-native-cli: 2.0.1
react-native: 0.57.3

screenshot_20181024-143252_sms

Important: Update package on npm

Please merge the open pull requests and update the package on npm so we can update the package with ease from the npm repository.

People are forced to publish their own repositories due to the open abandoned PRs and issues. It's important to have one centralized package instead of having one separate package for each of the users.

If I see no activity on this repo for a long, I will have to publish a new package with the open PRs merged.

Error: Duplicate module name

Hi, after installed react-native-sms-x, when run npm start, this error returns

root@developer1:/var/www/html/senderfy# npm start

[email protected] start /var/www/html/senderfy
react-native-scripts start

14:43:30: Starting packager...
ERROR STARTING PACKAGER
Starting React Native packager...
Scanning folders for symlinks in /var/www/html/senderfy/node_modules (15ms)
Loading dependency graph.

jest-haste-map: @providesModule naming collision:
Duplicate module name: react-native
Paths: /var/www/html/senderfy/node_modules/react-native-sms-x/node_modules/react->native/package.json collides with /var/www/html/senderfy/node_modules/react-native/package.json

This warning is caused by a @providesModule declaration with the same name across two different files.

Does this still work ?

I am attempting to install this but SmsManager is no longer available ? can anyone confirm or provide an alternative resuource to send sms from background?

Thanks.

Build fails when using react-native-x.

Hi,

When i use your lib i get

A problem occurred configuring project ':app'.
> A problem occurred configuring project ':react-native-sms-x'.
   > failed to find Build Tools revision 24.0.1

I tried to check if everything was okay and it was as how you recommended in README (double checked).

I can't really figure out what's wrong but i thought i should let you know about this.

Thanks.

'compile' is obsolete (will be removed on Gradle 7.0)

When I try to build my app for android, I get the following warning:

> Configure project :react-native-sms-x
WARNING:: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed in version 7.0 of the Android Gradle plugin.
For more information, see http://d.android.com/r/tools/update-dependency-configurations.html.

I guess this line is causing the problem:

compile "com.facebook.react:react-native:+" // From node_modules.

Message does not have permission SEND_SMS

I added the

to the AndroidManifest.xml
But I stll get this message - Snding SMS message: uid 10216 does not have android.premission.SEND_SMS.
Why is that?
Should I add anything else to manifest? Or anything else I am missing?

react-native-sms-x:compileReleaseJavaWithJavac

hey
i get this error after install the package

node_modules\react-native-sms-x\android\app\src\main\java\com\someone\sendsms\SendSMSPackage.java:27: error: method does not override or implement a method from a supertype
    @Override
    ^
1 error
:react-native-sms-x:compileReleaseJavaWithJavac FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-sms-x:compileReleaseJavaWithJavac'.

what was wrong?
Window 10 , RN 48.4

Packager fails to build upon npm install

So I installed this package into my app and after it finished installing from npm and I start react-native packager I get the following errors without making the changes in the android folder. The problem persists even after making the changes in the android folder that were instructed from the readme. Here are the errors:

Failed to build DependencyGraph: @providesModule naming collision:
  Duplicate module name: react-native-vector-icons
  Paths: /Users/kennetpostigo/Projects/react-native/node_modules/react-native-sms-x/node_modules/react-native/local-cli/core/__fixtures__/files/package.json colli
ative/node_modules/react-native/local-cli/core/__fixtures__/files/package.json

This error is caused by a @providesModule declaration with the same name across two different files.
Error: @providesModule naming collision:
  Duplicate module name: react-native-vector-icons
  Paths: /Users/kennetpostigo/Projects/react-native/node_modules/react-native-sms-x/node_modules/react-native/local-cli/core/__fixtures__/files/package.json colli
ative/node_modules/react-native/local-cli/core/__fixtures__/files/package.json

This error is caused by a @providesModule declaration with the same name across two different files.
    at HasteMap._updateHasteMap (/Users/kennetpostigo/Projects/react-native/node_modules/react-native/packager/src/node-haste/DependencyGraph/HasteMap.js:159:13)
    at p.getName.then.name (/Users/kennetpostigo/Projects/react-native/node_modules/react-native/packager/src/node-haste/DependencyGraph/HasteMap.js:134:31)

Do you know why this occurs?

Sdk version 31 above S+

On apps with compileSdkVersion above 31, this error will be thrown when trying to send an SMS:

Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.

Build fails when using SDK Version 28

I have a lot of errors related with compileSdkVersion and buildToolsVersion

error: style attribute 'android:attr/colorError not found' not found.
error: style attribute 'android:attr/keyboardNavigationCluster' not found.
error: resource android:attr/dialogCornerRadius not found.
...

this issue was resolved by adding the following lines in your android/build.gradle file

allprojects {
    ...
    subprojects {
        afterEvaluate {
            project ->
                if (project.hasProperty("android")) {
                    android {
                        compileSdkVersion 28
                        buildToolsVersion '28.0.3'
                    }
                }
        }
    }
}

Sms not showing in the conversation list

Hi guys, thanks for the package,
It's working on most the devices I tried but on this huawei y6 with android 9 it's sending the message, another phone is receiving it, but unfortunately it doesn't show up on the message list on the sms app.

also when someone replies to the message, i don't get any text.
any idea?

Expo setup

Can i setup this package with Expo? i get error: Typerror:null is not an object(evaluating '_reactNativeGetSmsX.default.send')

SMS sending failed dua to larger size

I am having issues while sending lengthy messages through react-native-sms-x. The plugin works perfectly when dealing with small messages. but when I send lengthy SMS through the app. The app doesn't show any error but also not send SMS.

java.lang.Double cannot be cast to java.lang.String

Hello!
I am testing the component and using the suggested example, just changing my phone number. But, the error "java.lang.Double cannot be cast to java.lang.String" occurs. I looked for some solution on Google but I didn't find anything that I could apply to solve it in use with "react-native-sms-x". Can anybody help me?

This is my code:
request(PERMISSIONS.ANDROID.SEND_SMS).then(result => {
SendSMS.send(
123,
'+55<my_number>',
'Hey.., this is me!\nGood to see you. Have a nice day.',
msg => {
ToastAndroid.show(msg, ToastAndroid.SHORT);
},
);
});

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.