Giter Site home page Giter Site logo

Comments (6)

avishayil avatar avishayil commented on May 26, 2024

Can you put your code so we'll be able to see what's going on?
Also, if it's Android specific crash, do you have the crash log from Android Studio?

from react-native-onesignal.

duyluandethuong avatar duyluandethuong commented on May 26, 2024

All the problems are solved now. I think the issues is that I forget to put ALL the lines into the main and manifest file. So, advice for the others who may experience crash in OneSignal android app: FOLLOW THE GUIDE, EACH AND EVERY SINGLE LINE.

Thank you @avishayil . Already in love with OneSignal

from react-native-onesignal.

avishayil avatar avishayil commented on May 26, 2024

You're welcome!
I'm not part of OneSignal, but they indeed have a great service.
Closing issue.

from react-native-onesignal.

mehrdadmms avatar mehrdadmms commented on May 26, 2024

@duyluandethuong @avishayil
i have followed each and every line in the guid i'm sure
but my app still crashes every time i send a notification from onesignal dashboard
what should i do ?
this is my androidmanifest
`

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>

<application
  android:name=".MainApplication"
  android:label="@string/app_name"
  android:icon="@mipmap/ic_launcher"
  android:allowBackup="false"
  android:theme="@style/AppTheme">
        <meta-data
                android:name="com.google.android.geo.API_KEY"
                android:value="AIzaSyCrFU1aN9R-BNDiHZCbhEb4AWHqbqNPu2Q"/>
  <activity
    android:name=".MainActivity"
    android:label="@string/app_name"
    android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
    android:launchMode="singleTop"
    android:windowSoftInputMode="adjustResize">
    <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
  </activity>
  <activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
</application>
`

from react-native-onesignal.

mehrdadmms avatar mehrdadmms commented on May 26, 2024

also this is my logcat
asd

from react-native-onesignal.

mehrdadmms avatar mehrdadmms commented on May 26, 2024

i changed
implementation 'com.google.firebase:firebase-core:16.0.0'
to
implementation 'com.google.firebase:firebase-core:+'
and it worked

from react-native-onesignal.

Related Issues (20)

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.