Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all 16550 articles
Browse latest View live

About 100 error in Xcode, Undefined symbols for architecture x86_64 :upgraded react-native from 0.59.1 to 0.60.5

$
0
0

I've been trying to upgrade my project and use cocoapods for ios,Whenever i build from xcode it gives me 100 error related to swift, - My project does not depends on swift- Upgraded all packages

Please find screenshot for error

PackageList Screenshot!

Xcode Error Screenshot!

Xcode Error Screenshot1!

Xcode Error Screenshot2!

I've followed below link for package upgradationreact-native-community link!

Same error was found flutter! - didn't try this

# platform :ios, '9.0'require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'target 'test' do  # Uncomment the next line if you're using Swift or would like to use dynamic frameworks  # use_frameworks!  # Pods for test  # Your 'node_modules' directory is probably in the root of your project,  # but if not, adjust the `:path` accordingly  pod 'React', :path => '../node_modules/react-native/'  pod 'React-Core', :path => '../node_modules/react-native/React'  pod 'React-DevSupport', :path => '../node_modules/react-native/React'  pod 'React-fishhook', :path => '../node_modules/react-native/Libraries/fishhook'  pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS'  pod 'React-RCTPushNotification', :path => '../node_modules/react-native/Libraries/PushNotificationIOS'  pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation'  pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob'  pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image'  pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS'  pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network'  pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings'  pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text'  pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration'  pod 'React-RCTWebSocket', :path => '../node_modules/react-native/Libraries/WebSocket'  pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact'  pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi'  pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor'  pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'  pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'  pod 'DoubleConversion', :podspec =>   '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'  pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'  pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'  pod 'react-native-print', :path => '../node_modules/react-native-print'  pod 'react-native-webview', :path => '../node_modules/react-native-webview'  pod 'RNImageCropPicker', :path => '../node_modules/react-native-image-crop-picker'  pod 'react-native-sqlite-storage', :path => '../node_modules/react-native-sqlite-storage'  pod 'RNCAsyncStorage', :path => '../node_modules/@react-native-community/async-storage'  pod 'react-native-netinfo', :path => '../node_modules/@react-native-community/netinfo'  pod 'react-native-contacts', :path => '../node_modules/react-native-contacts'  pod 'RNFS', :path => '../node_modules/react-native-fs'  pod 'RNGestureHandler', :path => '../node_modules/react-native-gesture-handler'  pod 'react-native-html-to-pdf', :path => '../node_modules/react-native-html-to-pdf'  pod 'react-native-image-resizer', :path => '../node_modules/react-native-image-resizer'  pod 'RNShare', :path => '../node_modules/react-native-share'  pod 'react-native-splash-screen', :path => '../node_modules/react-native-splash-screen'  pod 'RNSVG', :path => '../node_modules/react-native-svg'  pod 'ReactNativePermissions', :path => '../node_modules/react-native-permissions'  pod 'lottie-react-native', :path => '../node_modules/lottie-react-native'  pod 'lottie-ios', :path => '../node_modules/lottie-ios'  pod 'Firebase/Core', '~> 6.3.0'  #pod 'OneSignal', '>= 2.9.3', '< 3.0'  # Required by RNFirebase  pod 'Firebase/Core', '~> 6.3.0'  #target 'OneSignalNotificationServiceExtension' do  #  pod 'OneSignal', '>= 2.6.2', '< 3.0'  #end  post_install do |installer|    installer.pods_project.targets.each do |target|      target.build_configurations.each do |config|        config.build_settings['APPLICATION_EXTENSION_API_ONLY'] = 'No'      end    end  end  use_native_modules!endtarget 'test-tvOSTests' do  inherit! :search_paths  # Pods for testingendtarget 'testTests' do  inherit! :search_paths  # Pods for testingendtarget 'test-tvOS' do  # Uncomment the next line if you're using Swift or would like to use dynamic frameworks  # use_frameworks!end```Expecting it should have been worked easily

React Native Navigation and state management

$
0
0

React Navigation vs Routers(What should i use?)Redux vs Redux ToolKit(What should is use?)

What should i use for navigation between screens Reac† navigations or routers, And for state management inside the application what should be useful redux or redux tool?

react native axios request not working in IOS simulator

$
0
0

I am trying to getting data from API using axios.

This is my code that makes a get request :

export const loadBloodGroups = () => {    return (dispatch) => {        dispatch({ type: LOADING_BLOOD });        const url = `http://www.example.org/api/bloodgroup/getusersbloodgroup`;        axios.get(url)        .then(response => loadingSuccess(dispatch, response))        .catch(error => loadingFail(dispatch, error));    };};const loadingFail = (dispatch, error) => {    console.log(error);    dispatch({         type: LOADING_BLOOD_FAIL,        payload: error    });};const loadingSuccess = (dispatch, response) => {    dispatch({        type: LOADING_BLOOD_SUCCESS,         payload: response    });}; 

info.plist setup for http :

enter image description here

It works fine in android emulator, but IOS simulator is not working.

In my browser debug console it shows :

enter image description here

and Mac terminal it shows :

enter image description here

Can anybody tell me, where I made mistake ? or should I need to do any other configuration for IOS?

My platform:

  • OS: Mac 10.13
  • node: 10.7
  • npm: 6.3.0
  • react: 16.4.1
  • react-native: 0.55

Unrecognized font family 'Roboto' - React Native iOS

$
0
0

enter image description here

Problems when i build my app in react native with the comand: react-native run-ios

'React/RCTUtils.h' file not found

$
0
0

I am using xcode to build android app. in azure devops pipeline; on build i am getting this error:

▸ Compiling PdfManager.m❌  /Users/runner/runners/2.166.3/work/1/s/node_modules/react-native-pdf/ios/RCTPdf/PdfManager.m:16:9: 'React/RCTUtils.h' file not found#import "React/RCTUtils.h"                                       ^~~~~~~~~~~▸ Compiling RCTPdfPageViewManager.m▸ Compiling RCTPdfPageView.m▸ Compiling RCTPdfView.m** BUILD FAILED **The following build commands failed:    CompileC /Users/runner/Library/Developer/Xcode/DerivedData/helloapp-awmfiqdyvoywmpfazxztxqjlmzar/Build/Intermediates.noindex/Pods.build/Release-iphoneos/react-native-pdf.build/Objects-normal/armv7/PdfManager.o /Users/runner/runners/2.166.3/work/1/s/node_modules/react-native-pdf/ios/RCTPdf/PdfManager.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler(1 failure)##[error]Error: /usr/bin/xcodebuild failed with return code: 65

Unable to find cause of this, need some help, my podfile is:

# Uncomment the next line to define a global platform for your project# platform :ios, '9.0'target 'helloapp' do  # Uncomment the next line if you're using Swift or would like to use dynamic frameworks  # use_frameworks!  # Pods for helloapp   pod 'Firebase/Core'   pod 'Firebase/Messaging' pod 'rn-fetch-blob', :path => '../node_modules/rn-fetch-blob' pod 'react-native-pdf', :path => '../node_modules/react-native-pdf' target 'helloappTests' do    inherit! :search_paths    # Pods for testing  endendpost_install do |installer|        installer.pods_project.build_configurations.each do |config|            config.build_settings['CODE_SIGNING_REQUIRED'] = "NO"            config.build_settings['CODE_SIGNING_ALLOWED'] = "NO"        endend

and my azure pipeline xcode yaml task:

- task: Xcode@5  inputs:    workingDirectory: 'ios'    actions: 'build'    scheme: 'helloapp'    sdk: 'iphoneos'    configuration: 'Release'    xcWorkspacePath: '**/helloapp.xcworkspace'    xcodeVersion: 'default'    packageApp: true    signingOption: 'manual'    signingIdentity: '$(APPLE_CERTIFICATE_SIGNING_IDENTITY)'    provisioningProfileUuid: '$(APPLE_PROV_PROFILE_UUID)'    args: '-UseModernBuildSystem=0'

if require any more details please ask in question.

LTR Layout always react native iOS

$
0
0

hey I have a question:

on react native app for iOS the default is LTR?I mean, I know there's an option to let RTL by adding that:

  [[RCTI18nUtil sharedInstance] allowRTL:YES];  [[RCTI18nUtil sharedInstance] forceRTL:YES];

but in case I want my app to be always LTR and not RTL even if the device set to RTL (Hebrew/Arabic) do I need to do any change? like adding

   [[RCTI18nUtil sharedInstance] allowRTL:NO];   [[RCTI18nUtil sharedInstance] forceRTL:NO];

or I don't need to touch the file and leave it as it?

Reading QR code crashes iOS(Objective C) application

$
0
0

I have created one React Native application for barcode/QRCode scanning functionality. I used third party barcode scanner library.I am able to scan barcode properly, but application getting crashed on QR code scan.Here is sample code:

- (void)captureOutput:(AVCaptureOutput *)output didOutputMetadataObjects:(NSArray<__kindof AVMetadataObject *> *)metadataObjects fromConnection:(AVCaptureConnection *)connection{ for (AVMetadataObject *object in metadataObjects) {  if ([object isKindOfClass:[AVMetadataMachineReadableCodeObject class]]) {    if (_callback != nil) {        _callback(@{                    @"format": object.type,                    @"content": [(AVMetadataMachineReadableCodeObject *)object stringValue]                    });    }}

}}

it returns nil when I am trying scan QR code and application is getting crash on this line

[(AVMetadataMachineReadableCodeObject *)object stringValue] 

and getting exception error is

-[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]

React Native with native iOS SDK - display native view and navigate to other native views

$
0
0

So I've got a 3rd party SDK to integrate with a react native application.

To make things simple -SDK is initialized by providing UINavigationController and returns UIViewController.React Native app should show the view controller as subview in a specific screen.The returned VC has some buttons - some are presenting other VCs and some are pushing other VCs.

To support this SDK I've changed default root VC of React Native to be UINavigationController.As suggested here: https://stackoverflow.com/a/45200771/7553268

The problem -Returned VC is displayed as expected.Also buttons that are using present works.But pushing other VCs are not working.

Maybe related -I also get warning about UITableView isn't in the view hierarchy (first returned VC has table view inside) but it shows up correctly and I can interact with it.


API to validate user name selection, user can't use any single spelling from dictionary

$
0
0

I am working on mobile app development using react-native where I come to an issue for user registration.

In my application user can register and choose their username. Now, I want to validate the user that the user can't select any single word of the English dictionary. e.g. user can't keep the user name apple, batsman, avenger, etc. But, user can choose the combination of multiple words of the English dictionary. e.g. appleavenger, appleball, zebrahorse, etc.

Also, I want an API which can validate the user to select the name of any famous celebrity, company name, firm name as a username. e.g. users could not able to choose cocacola, pepsi, donaldtrump, barekobama etc. as their username.

So, if anyone could provide some list of APIs which I can use in my project, it would be more than good.

ThanksJD

iOS Build Crash after upgrade from 0.60.4 to 0.62.2

$
0
0

I recently upgraded my react-native project from 0.60.4 to 0.62.2. I added all the dependencies and resolved all the errors thrown in terminal one by one and I was successfully able to compile the project. Now when I run the build in XCode the app crashes with following log in XCode:

2020-04-16 16:25:50.635 [error][tid:com.facebook.react.JavaScript] TypeError: undefined is not an object (evaluating 'R.ART.Shape')2020-04-16 16:25:50.641 [fatal][tid:com.facebook.react.ExceptionsManagerQueue] Unhandled JS Exception: TypeError: undefined is not an object (evaluating 'R.ART.Shape')2020-04-16 16:25:50.642 [error][tid:com.facebook.react.JavaScript] Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)2020-04-16 16:25:50.686677+0530 MY_APP[14817:106507] *** Terminating app due to uncaught exception 'RCTFatalException: Unhandled JS Exception: TypeError: undefined is not an object (evaluating 'R.ART.Shape')', reason: 'Unhandled JS Exception: TypeError: undefined is not an object (evaluating 'R.ART.Shape'), stack:<unknown>@875:258v@2:1473<unknown>@874:228v@2:1473<unknown>@873:242v@2:1473<unknown>@872:150v@2:1473<unknown>@870:228v@2:1473<unknown>@868:342v@2:1473<unknown>@394:471v@2:1473<unknown>@6:70v@2:1473d@2:875global code@1220:3'*** First throw call stack:(    0   CoreFoundation                      0x000000010c4601bb __exceptionPreprocess + 331    1   libobjc.A.dylib                     0x000000010a846735 objc_exception_throw + 48    2   MY_APP                                0x0000000106f0426a RCTFormatError + 0    3   MY_APP                                0x0000000106f876fc -[RCTExceptionsManager reportFatal:stack:exceptionId:suppressRedBox:] + 519    4   MY_APP                                0x0000000106f88197 -[RCTExceptionsManager reportException:] + 1669    5   CoreFoundation                      0x000000010c46703c __invoking___ + 140    6   CoreFoundation                      0x000000010c4644d5 -[NSInvocation invoke] + 325    7   CoreFoundation                      0x000000010c464926 -[NSInvocation invokeWithTarget:] + 54    8   MY_APP                                0x0000000106f36c51 -[RCTModuleMethod invokeWithBridge:module:arguments:] + 612    9   MY_APP                                0x0000000106f39203 _ZN8facebook5reactL11invokeInnerEP9RCTBridgeP13RCTModuleDatajRKN5folly7dynamicE + 251    10  MY_APP                                0x0000000106f38f85 ___ZN8facebook5react15RCTNativeModule6invokeEjON5folly7dynamicEi_block_invoke + 78    11  libdispatch.dylib                   0x000000010e367595 _dispatch_call_block_and_release + 12    12  libdispatch.dylib                   0x000000010e368602 _dispatch_client_callout + 8    13  libdispatch.dylib                   0x000000010e36fb0b _dispatch_lane_serial_drain + 791    14  libdispatch.dylib                   0x000000010e370784 _dispatch_lane_invoke + 428    15  libdispatch.dylib                   0x000000010e37a89a _dispatch_workloop_worker_thread + 733    16  libsystem_pthread.dylib             0x000000010e6fd611 _pthread_wqthread + 421    17  libsystem_pthread.dylib             0x000000010e6fd3fd start_wqthread + 13)libc++abi.dylib: terminating with uncaught exception of type NSException

react-native info

System:    OS: macOS Mojave 10.14.6    CPU: (4) x64 Intel(R) Core(TM) i5-5250U CPU @ 1.60GHz    Memory: 317.59 MB / 8.00 GB    Shell: 5.3 - /bin/zsh  Binaries:    Node: 13.13.0 - /usr/local/bin/node    Yarn: Not Found    npm: 6.14.4 - /usr/local/bin/npm    Watchman: 4.9.0 - /usr/local/bin/watchman  Managers:    CocoaPods: 1.7.5 - /usr/local/bin/pod  SDKs:    iOS SDK:      Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1    Android SDK:      API Levels: 23, 24, 26, 28      Build Tools: 28.0.3      System Images: android-28 | Google Play Intel x86 Atom      Android NDK: Not Found  IDEs:    Android Studio: Not Found    Xcode: 10.1/10B61 - /usr/bin/xcodebuild  Languages:    Java: 1.8.0_73 - /usr/bin/javac    Python: 2.7.10 - /usr/bin/python  npmPackages:    @react-native-community/cli: Not Found    react: 16.11.0 => 16.11.0     react-native: 0.62.2 => 0.62.2   npmGlobalPackages:    *react-native*: Not Found

Any help would be highly appreciated.Thanks-in-advance.

How to add Notification Service Extension for Firebase?

$
0
0

I am trying to follow the guide here: https://firebase.google.com/docs/cloud-messaging/ios/send-image

I went to New > Target > Notification Service Extension (embedded this new target into the original target) and pasted in NotificationService.m:

@interface NotificationService ()@property (nonatomic, strong) void (^contentHandler)(UNNotificationContent *contentToDeliver);@property (nonatomic, strong) UNMutableNotificationContent *bestAttemptContent;@end@implementation NotificationService- (void)didReceiveNotificationRequest:(UNNotificationRequest *)request withContentHandler:(void (^)(UNNotificationContent * _Nonnull))contentHandler {    self.contentHandler = contentHandler;    self.bestAttemptContent = [request.content mutableCopy];    // Modify the notification content here...    self.bestAttemptContent.title = [NSString stringWithFormat:@"%@ [modified]", self.bestAttemptContent.title];    // Call FIRMessaging extension helper API.    [[FIRMessaging extensionHelper] populateNotificationContent:self.bestAttemptContent                                             withContentHandler:contentHandler];    self.contentHandler(self.bestAttemptContent);}- (void)serviceExtensionTimeWillExpire {    // Called just before the extension will be terminated by the system.    // Use this as an opportunity to deliver your "best attempt" at modified content, otherwise the original push payload will be used.    self.contentHandler(self.bestAttemptContent);}@end

I am now getting Use of undeclared identifier 'FIRMessaging' in NotificationService.m.

In NotificationService.m I tried to import similarly to my original target's AppDelegate.m where FIRMessaging is available and working with no issues:

#import "NotificationService.h"#import <Firebase.h>#import "RNFirebaseNotifications.h"#import "RNFirebaseMessaging.h"...

Then I get 'Firebase.h' file not found. I am confused because it seems to work in the original target, and this notification service extension is embedded in that target. I have tried messing with Header Search Paths and Framework Search Paths without much luck. What am I doing wrong?

Enable/Disable firebase push notifications in react native app

$
0
0

I have a react app with settings screens which allows to disable all types of notifications. How to achieve this wasn't exactly clear in react native documentation. I can ask for user permission when he signup but how do I disable this permission from settings screen so he will not receive any notifications but user can enable them again in future.

I can do this using topics but that's pretty limited. I want to target using audience from firebase console. Any help appreciated.

How to determine React Native statusbar height for iOS

$
0
0

In my React Native app on iOS, I want to make a <View> that wraps the status bar. Most places say that it should be 20px in height, but on the iPhone 11, for example, it seems to be higher than that. I want a solution that fits all devices.

How should I approach this?

Firebase Push Notifications not working for some iOS users

$
0
0

Okay so I have a React Native app that uses React Native Firebase (https://v5.rnfirebase.io/) to handle push notifications. Everything works fine for most users of both platforms, but specifically some of our iOS users are simply not receiving notifications.

After doing some digging, we found that the problematic users had FCM Tokens shorter than expected (this is saved in our DB). So we started to wonder if that was the problem, maybe we needed to refresh this token in order for things to work properly. We already know that re-installing the app and re-accepting permissions solves the issue, but we would like to avoid having to ask our users to do that.

We attempted to force a token refresh through source-code, for one specific user. We tried to run this code for one specific problematic user:

await firebase.iid().delete();return firebase.messaging().getToken()

This was supposed to delete the firebase instance to force a refresh of the token, hopefully fixing the problem. Apparently the token was updated, but our user still is not getting notifications.

Does anyone have any input as to why this might be happening? Any suggestions on how we could solve this using code push only?

OBS: RN version 0.61

TouchableOpacity onPress doesn't work inside ScrollView

$
0
0

(iOS Only)<TouchableOpacity> doesn't respond if it is inside of a <ScrollView> :

  1. It works properly in the simulator but not in a real device,
  2. keyboardShouldPersistTaps="always" doesn't make any difference
  3. Partial code:<ScrollView style={styles.scrollView}><TouchableOpacity style={styles.xButton} onPress={() => this._onClose()}>

any suggestions?

--- Code update -----

<ScrollView style={styles.scrollView}><TouchableOpacity style={styles.xButton} onPress={() => this._onClose()}><Image style = {styles.xImg} source = {require('../../images/xbtn.png')}/></TouchableOpacity>     {this._renderPricing()}     {this._renderServices()}</ScrollView>

and the Styling looks like this:

scrollView:{     width: width,    height: height,}, xButton: {    position: 'absolute',    zIndex: 1,    marginTop: '1%',    marginRight: '3%',    alignSelf: 'flex-end',},xImg: {    resizeMode: 'contain',    aspectRatio: .6,    opacity: 0.5,},

Why archiving the app in xcode with react native 0.62 will compiling also Flipper?

$
0
0

The new react native 0.62 has introduced new feature "Flipper", i saw that is a good debugger for debug mode, so it will compiled every single files of Flipper, that's good.

But now, Why also in release mode (archiving) in xcode is also compiling Flipper files?We actually don't need Flipper in release mode or distributed mode.

How can i stop xcode to do that in release mode?

Many thanks.

react-native cant run ios device

$
0
0

I try to run react-native app on a ios real device.It works well on simulator or on a device using xcode but I would like to run with command-lineI tried this :

>npm install -g ios-deploy >react-native run-ios --device "My iPhone"

And this is what I get :

info Found Xcode workspace "Project.xcworkspace"info Building (using "xcodebuild -workspace Project.xcworkspace -configuration Debug -scheme Project -destination id=00008020-0001395426EA002E")......................................................................2020-04-06 11:15:02.836 xcodebuild[16724:402803]  DTDeviceKit: deviceType from 00008020-0001395426EA002E was NULL2020-04-06 11:15:02.967 xcodebuild[16724:402797]  DTDeviceKit: deviceType from 00008020-0001395426EA002E was NULLinfo Installing and launching your app on My iPhone

The app appears in my iPhone but doesnt run.

Metro oppens in a new terminal but I get only this :

               ######                ######                            ###     ####        ####     ###                         ##          ###    ###          ##                        ##             ####             ##                        ##             ####             ##                        ##           ##    ##           ##                        ##         ###      ###         ##                         ##  ########################  ##                       ######    ###            ###    ######                ###     ##    ##              ##    ##     ###         ###         ## ###      ####      ### ##         ###     ##           ####      ########      ####           ##   ##             ###     ##########     ###             ##   ##           ####      ########      ####           ##     ###         ## ###      ####      ### ##         ###         ###     ##    ##              ##    ##     ###                ######    ###            ###    ######                       ##  ########################  ##                         ##         ###      ###         ##                        ##           ##    ##           ##                        ##             ####             ##                        ##             ####             ##                        ##          ###    ###          ##                         ###     ####        ####     ###                            ######                ######                                Welcome to React Native!                Learn once, write anywhereTo reload the app press "r"To open developer menu press "d"

And I doesnt get the progress bar that shows on build with XCode.

EDIT

For the logs :

user@MBP Project % react-native log-ioserror No active iOS device found

Versions installed :

user@MBP Project % react-native -vreact-native-cli: 2.0.1react-native: 0.62.0

error: ReactNative error ENOENT:no such file or directory, uv_cwd(null

$
0
0

Any suggestions to fix error below?

Failed to load bundle(http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false) with error ENOENT:no such file or directory, uv_cwd(null)

I tried this, but that did not work:

  • react-native upgrade react-native upgrade
  • unlink and link the module
  • uninstalling the package and reinstalling

I am on iOS emulator and here are my dependencies:

"dependencies": {"firebase": "^3.7.3","lodash": "^4.17.4","react": "15.4.2","react-native": "0.42.3","react-native-material-kit": "^0.4.1","react-native-vector-icons": "^4.0.0","react-navigation": "^1.0.0-beta.7","react-redux": "^5.0.3","redux": "^3.6.0","redux-thunk": "^2.2.0"  },"devDependencies": {"babel-jest": "19.0.0","babel-preset-react-native": "1.9.1","jest": "19.0.2","react-test-renderer": "15.4.2"  },"jest": {"preset": "react-native"  }

Expo CLI 'upload:ios' does not use my app specific password using CI with apple account that has 2 factor auth

$
0
0

I can't make expo use my app specific password, it keeps prompting to verify using SMS

expo upload:ios --non-interactive --config "./path.to.my.config.json" --language English --sku $(SKU) --apple-id $(APPLE_USERNAME) --apple-id-password $(APPLE_PASSWORD)

[06:45:17] Resolving the ITC team ID... Two-step Verification (4 digits code) is enabled for account 'some@account.com' More information about Two-step Verification: https://support.apple.com/en-us/HT204152

Please select a trusted device to verify your identity 1. +•••••••• XX SMS

That doesn't work for me because I use a CI agent.

My apple account is Admin role and I have tried setting following ENV variables with my app specific password

  • FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD
  • EXPO_APPLE_PASSWORD

I use expo v. 36.0.0, and it is a managed expo app and expo-cli v. 3.13.1

I can see other people get some other output than I do.

E.g:

https://github.com/expo/expo-cli/issues/1473 (maybe it's an ejected/bare expo app?)

Push Notifications getting dropped in iOS randomly

$
0
0

I am working on an iOS application built using React-Native and used OneSingnal for PushNotifications. Recently I upgraded to react-native version 0.61.5 and a compatible version of OneSingnal SDK (v3.6.4) along with that.

However, more often than not notifications get dropped somewhere in the middle and not reach mobile app. Here is what I know:

  1. Devices are properly registered on OneSingal and I can see it in theAudience tab after I register.
  2. Status of notifications is delivered in OneSingal. That is, it has been successfully sent to APNs servers.
  3. Sometimes notifications do get received. So, the problem with mobile app code also seems unlikely.

Here is a scenario that I tried:

I uninstalled the app and installed the latest version at around 11.40 AM today. Logged in my account, set time for notification to be 12:00 PM (there is a setting in the app to set the time to receive notifications). Then I closed the app by swiping it out of app list by the double pressing home screen. But did not receive a notification at 12:00 PM. OneSingla showed delivered.

Then I opened the app again, used it for some time and set time for 2:00 PM again. This time I received the notification.

I am not really sure where can the problem be.

Viewing all 16550 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>