小编Ter*_*ius的帖子

当应用程序是本机响应的后台时,如何更新服务中的经度和纬度

我尝试每15分钟更新一次服务器中的位置.那么,我怎么能这样做......

我正在使用react-native-maps地图api

4
推荐指数
2
解决办法
1334
查看次数

react-native-firebase_messaging 尚未在 project.ext.'react-native'.versions.android.compileSdk 中定义默认值

我正在使用@react-native-firebase/messaging. 当我尝试在 android 中运行该项目时,它返回错误

:react-native-firebase_messaging has not defined a default in project.ext.'react-native'.versions.android.compileSdk in its build.gradle file.
Run Code Online (Sandbox Code Playgroud)

firebase react-native firebase-cloud-messaging react-native-firebase

3
推荐指数
1
解决办法
3966
查看次数

react-native-push-notification无法在android中构建

我将在我的应用程序中使用react-native-push-notification进行通知,但是当我使用此库时,它给我这样的错误.....

> Task :react-native-push-notification:compileDebugJavaWithJavac FAILED
E:\AndroidNotify\node_modules\react-native-push-notification\android\src\main\java\com\dieam\reactnativepushnotification\modules\RNPushNotificationHelper.java:7: error: cannot find symbol
import android.app.NotificationChannel;
                  ^
  symbol:   class NotificationChannel
  location: package android.app
E:\AndroidNotify\node_modules\react-native-push-notification\android\src\main\java\com\dieam\reactnativepushnotification\modules\RNPushNotificationHelper.java:480: error: cannot find symbol
        if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O)
                                                       ^
  symbol:   variable O
  location: class VERSION_CODES
E:\AndroidNotify\node_modules\react-native-push-notification\android\src\main\java\com\dieam\reactnativepushnotification\modules\RNPushNotificationHelper.java:488: error: cannot find symbol
        int importance = NotificationManager.IMPORTANCE_DEFAULT;
                                            ^
  symbol:   variable IMPORTANCE_DEFAULT
  location: class NotificationManager
E:\AndroidNotify\node_modules\react-native-push-notification\android\src\main\java\com\dieam\reactnativepushnotification\modules\RNPushNotificationHelper.java:489: error: cannot find symbol
        NotificationChannel channel = new NotificationChannel(NOTIFICATION_CHANNEL_ID, name, importance);
        ^
  symbol:   class NotificationChannel
  location: class RNPushNotificationHelper
E:\AndroidNotify\node_modules\react-native-push-notification\android\src\main\java\com\dieam\reactnativepushnotification\modules\RNPushNotificationHelper.java:489: error: cannot find symbol
        NotificationChannel channel = new NotificationChannel(NOTIFICATION_CHANNEL_ID, …
Run Code Online (Sandbox Code Playgroud)

react-native

2
推荐指数
1
解决办法
5935
查看次数

react-native-image-picker launchCamera 在 android 中不起作用

我正在使用"react-native-image-picker": "^3.0.1"本机来捕获图像。但我在 android 9 中打开相机时出错。

我有错误:

{"errorCode": "others", "errorMessage": "This library does not require Manifest.permission.CAMERA, if you add this permission in manifest then you have to obtain the same."}
Run Code Online (Sandbox Code Playgroud)

这是我的代码

{"errorCode": "others", "errorMessage": "This library does not require Manifest.permission.CAMERA, if you add this permission in manifest then you have to obtain the same."}
Run Code Online (Sandbox Code Playgroud)

android android-camera react-native react-native-image-picker

1
推荐指数
1
解决办法
3187
查看次数

当我将构建发布 apk 时,React 本机 Google 登录失败

我将使用谷歌登录它正在工作,但每当我创建发布时,它都无法正常工作

GoogleErrorcode : DEVELOPERERROR
Run Code Online (Sandbox Code Playgroud)

reactjs react-native

-3
推荐指数
1
解决办法
3003
查看次数