Questions tagged [react-native]
The react-native tag has no usage guidance.
59
questions
0
votes
2
answers
48
views
No notifications on Android after implementing React Native Salesforce Marketing Cloud MobilePush SDK
I'm trying to implement push notifications through SF MC in my React Native project. I installed react-native-marketingcloudsdk and followed the instructions in the README and I get the following ...
0
votes
1
answer
65
views
How do i set the priority of mobile push notifications
I am following the following documentation to set the priority of the Mobile Push channel notifications but still when viewing the logs the channel priority is -1.
Documentation I'm following to set ...
-1
votes
1
answer
38
views
How to get SDK logs dor ReactNative MobilePush SDK?
we are almost done with MobilePush implementation in our app, which is built on React, hence we use the ReactSDK Plugin.
Everything works fine - contacts are getting registered, optins/optouts are ...
0
votes
1
answer
48
views
How can you stop react-native-marketingcloudsdk from auto enroling contacts into push
When setting up sfmcsdk on react-native, I can't find a way to stop the app from enabling push by default. This is reproduced in this repo, credentials not added as they are private.
Have I missed a ...
0
votes
0
answers
29
views
React native MobileSDK logout is NOT working, but redirecting user to SF allow access screen!
On logout, instead of being redirected to the log in screen, the user is redirected to the allow access screen:
oauth.logout(
() => {
logMessage('user logged out', id);
}...
0
votes
1
answer
254
views
Is Deep Linking supported in Mobile Push(SFMC)?
Is there deep linking support in mobile push?
I didn't find anything related in the documentation.
https://help.salesforce.com/s/articleView?id=sf.mc_mp_mobilepush.htm&type=5
In mobile push and ...
1
vote
1
answer
61
views
Implementing Salesforce SDK into EXISITING React Native Codebase
Everywhere I've look, including Salesforce Docs, it shows steps on how to create a new React Native project with the Salesforce SDK. I am having trouble finding any docs on how to get the Salesforce ...
0
votes
0
answers
92
views
How to get Notification data in App.tsx with npm libraries like notifee, wix react native push notification, etc.,?
I am trying to get the notification message in my react native App.tsx for Android. I have below Configuration in MarketingCloudSdk.init().
I have found one thing in logcat
When I click the ...
0
votes
0
answers
47
views
Salesforce react native push SDK - contact key is null
We are using SF react native SDK to send mobile push
but getting this error contact key null
when we try to call this function getSdkState() i get undefined
like getTags and getAttributes
It appears ...
0
votes
1
answer
114
views
Retrieving more than 2000 records from net.query & net.querymore in ReactNative- Salesforce sdk
net.query limits 200 records at a time. Where large number of records are not retrieving and does not even display an error but outputting response.done = false and response.nextRecordsUrl has a url ...
3
votes
1
answer
302
views
Marketing Cloud MobilePush SDK React Native Push notification integration [closed]
I'm a newbie to SalesForce. I am trying to integrate this package https://github.com/salesforce-marketingcloud/react-native-marketingcloudsdk to my React Native app for push notifications. Can anyone ...
0
votes
1
answer
241
views
Mobile push does not return feedback from push operations when sending a notification
Test done on ANDROID
The platform returns that the submission failed, but does not explain why it failed.
How do I get this feedback?
1
vote
1
answer
84
views
ContactKey does not appear in Contact Builder -> All Contacts -> Mobile Push - React Native (IOS)
I followed all the steps in the react-native-marketingcloudsdk documentation, including activating the push, but the set contactKey does not appear in the Contact Builder.
SDK log is returning, push ...
-1
votes
1
answer
36
views
Want to remove Allow Access page while logging in into the app
I want to remove Allow Permissions page while logging-in in to my application.
I am using SalesforceMobileSDK-ReactNative.
PFA for reference.
0
votes
0
answers
27
views
IOS app restarts automatically after click on allow in SFDC login screen with oauth.authenticate function with community user
When i try to login with community user with react-native ios app using forcereact setup,on click of allow in login screen iOS app restarts automatically.
1
vote
1
answer
137
views
react-native 0.68 vs SFMCSDK 7
I've recently been integrating the react-native-marketingcloudsdk into an app, during this time we've upgraded to react-native 0.68 which targets Android 12. Now that I'm ready to add the sdk changes ...
0
votes
0
answers
67
views
Implementation of PKCE with Salesforce Mobile SDK
I am looking into implementing the PKCE authorization flow using the Salesforce Mobile SDK with React Native. I know this is possible using REST API's, but I noticed that the SDK library has ...
0
votes
1
answer
155
views
React Native SDK IOS - Error
I need help installing the SDK in the IOS application. An error is appearing in the process of performing the "Build"
We follow this documentation: https://github.com/salesforce-...
0
votes
1
answer
101
views
Error in executing JEST Unit Test cases in react-native project with Salesforce Mobile SDK created by forcereact
We are creating React-Native mobile App Using Salesforce Mobile SDK.
In this project we setup JEST for unit test cases writing. But whenever it goes into Salesforce Mobile SDK API it failed and sends ...
1
vote
0
answers
61
views
Is the marketing cloud sdk (React Native) supported for ios15? [closed]
When I run the app with new XCode (for ios 15), the devices are not registered in marketing cloud. But there are no errors as well on registration.
1
vote
0
answers
102
views
Salesforce Mobile SDK React Native: Invoke Biometric/Pin Prompt after timeout in react native app
Mobile-SDK version: v10.0.0
Platform: android, iOS
React Native: 0.67.1
We are developing a react native app using salesforce SDK and have a requirement where we want the user to enter his/her pin/...
1
vote
0
answers
571
views
Deep links handling of Marketing Cloud SDK in React Native
SMC SDK for React Native: https://github.com/salesforce-marketingcloud/react-native-marketingcloudsdk
I'm trying to use deep links with in-app messages but I'm not getting them to work. After ...
0
votes
1
answer
149
views
How to properly integrate MobilePush with Objective-C?
I have an integration of MobilePush on my project (React-Native), but with the recent updates i had to update to the latest version of the SDK (8.0.4). But i getting some issues with it.
For example, ...
0
votes
1
answer
315
views
Any Marketing Cloud SDK Resource for Objective - C (Not Swift) Code? [closed]
Currently, I am developing the Marketing Cloud function from React Native using MC SDK, and want to implement push handling Url - Open Direct.
However, documentation to Handling URL using Objective C ...
0
votes
1
answer
205
views
app created with forcereact create doesn't start metro bundler
Following the instruction on the Trailhead article, i created a react-native app with forcereact create. Everything went well but after i run yarn start or npm start, open xcode and run the simulator, ...
0
votes
0
answers
289
views
Persist opendirect URLs from cold start android and iOS
I'm able to get opendirect URLs into the app on both android and iOS and they deeplink as expected when the app is in the background, however, these urls don't persist when the app is killed. I'm sure ...
1
vote
2
answers
348
views
How to implement url handling of marketingcloudSDK in React Native
https://github.com/salesforce-marketingcloud/react-native-marketingcloudsdk
I would like to know which is the best way to implement url handling in React Native. There is documentation for both ...
1
vote
2
answers
66
views
Using MarketingCloudSDK 7.4.0 with a Mendix made Android Mobile Application
I'm trying to use MarketingCloudSDK 7.4.0 with a Mendix made Android Mobile Application. Mendix is a lowcode platform that uses ReactNative as framework.
Therefore, I'm using the react-native-...
0
votes
1
answer
1k
views
Universal links not working when attached in a push notification with app killed
Hello and thank you in advance for your help.
I'm experiencing a problem in ios when the app is closed (killed) and a notification with a deep link is received: the url of the deep link is not passed ...
2
votes
1
answer
539
views
Universal links are not working when attached to a notification
Hello all and thanks in advance,
I'm trying to implement the universal links feature in my react native app in order to receive push notifications with links from Marketing Cloud and bring the user to ...
1
vote
3
answers
481
views
How can I import salesforce marketing cloud in ios
https://github.com/salesforce-marketingcloud/react-native-marketingcloudsdk
How can I import salesforce marketing cloud in ios
After npm install and pod install, when I put the below code in ...
0
votes
0
answers
141
views
How to make REST API call in smartstore in React Native
I am working on integrating salesforce with react native for the first time. I have an offline feature for that I am using smartStore. Now I want make REST API calls in smartStore. After checking ...
0
votes
0
answers
261
views
React Native Push Notification without body
I've successfully installed the RN library for MC push notifications on my app (https://github.com/salesforce-marketingcloud/react-native-marketingcloudsdk)
I'm able to register contacts and receive ...
1
vote
0
answers
1k
views
Android Push notification not working on React native - Firebase project ID is required to communicate with Firebase server
Version of Mobile SDK Used:
SalesforceMobileSDK-Android v 8.1
Issue found in :
React Native
OS Version:
Mac OX - Catalina 10.15
Device:
Nokia 8.1 Android version 10
Steps to reproduce:
Login in ...
2
votes
2
answers
433
views
Integrating Mobile SDK in existing React Native app
We have an existing React Native application that we would like to integrate with the Mobile SDK.
Is this something that we can do?
Is there a recommend way to do this?
Is there any specific ...
0
votes
0
answers
577
views
Marketing Cloud MobilePush SDK IOS React Native not showing the Device ID in the Marketing Cloud All Contact
MobilePush SDK IOS React Native not showing the Device ID in the Marketing Cloud All Contacts
Base on the links here: https://github.com/salesforce-marketingcloud/react-native-marketingcloudsdk
We ...
1
vote
1
answer
467
views
Cannot receive push notification in React Native
The problem is “cannot receive and take actions on the push notifications in React Native bundle” .
Receiving notifications and opening application by clicking the notifications happens on Native iOS ...
1
vote
0
answers
235
views
Gradle build error with Amazon S3 maven repository dependency
I am developing an open-source react native library that it's a wrapper for the Salesforce SDK chat. This library uses a Salesforce maven dependency that is hosted on an AWS S3 Bucket.
The problem is ...
3
votes
1
answer
2k
views
Salesforce Marketing Cloud mobilePush iOS Not Opted In with Variant Opt-Out Source
Hi Experts,
I have developed an app using Salesforce Marketing Cloud SDK for React Native (source: https://github.com/salesforce-marketingcloud/react-native-marketingcloudsdk).Android is working ...
0
votes
1
answer
103
views
RichPush Notifications on IOS are blocking regular pushes
React Native. iOS only:
I installed rich push notification extensions according to documentation here.
I have 4 targets, so I created 4 extensions "rich", 4 separate Bundle Identifiers "xxx.rich" ...
0
votes
1
answer
595
views
Any Marketing Cloud SDK Resource for Java (Not Kotlin) Code?
Hi Experts,
Currently I am developing Marketing Cloud function from React Native using MC SDK, and want to implement custom push notification handling.
However, documentation to set Url Handler ...
1
vote
1
answer
494
views
How to Re-register Device to Marketing Cloud When Contacts Deleted
I want to ask if Marketing Cloud SDK (Android & iOS) is able to re-register mobile device to Contact in Marketing Cloud after contacts in MC are deleted? If yes, how should I modify the code?
I ...
1
vote
0
answers
403
views
React-Native SFMC SDK - TypeScript definition file is incorrect [closed]
The TypeScript definition file included with the React-Native SFMC SDK is incorrect.
The MCReactModule is exported as a normal export.
export class MCReactModule {
static isPushEnabled(): Promise&...
1
vote
0
answers
150
views
Overriding Mobile SDK 7.3 login screen for React Native
we are doing a custom development of a mobile app connected to SF with a connected App. I was wondering if there's any way to override the default salesforce login screen that pops up and use a view ...
0
votes
1
answer
69
views
Apple API usage rejects from App Store Submission
I'm using v7.2 of the Mobile SDK included with the forcereact npm project. When submitting the app to Salesforce I'm getting 3 failures. Something is using NSPhotoLibrary, NSLocationAlways, and ...
2
votes
1
answer
286
views
Using Salesforce Mobile SDK vs Custom Salesforce Integration for Mobile App
In one of our projects we are using Salesforce Health Cloud and want to build a mobile app for patients. We mainly have two requirements -
All the patient data will be stored in the Health Cloud
...
0
votes
1
answer
377
views
React Native SDK - SmartSync - REST API calls
We're currently retrieving a list of Salesforce apps from the UI API using this function:
net.sendRequest('/services/data', `${net.getApiVersion()}/ui-api/apps`,
(e) => {
setApps(...
1
vote
0
answers
73
views
How to get the read only status of a field on a page layout from the API?
I'm using net.describeLayout from react-native-force to get the fields on the page layouts. However the problem is that it doesn't seem that the 'read-only' property from the page layout gets returned ...
0
votes
1
answer
74
views
What is the purpose/example for force:navigateToReactNativeApp event?
I'm wondering the idea behind this as I don't understand which kind of situation you will use this.
More info here.
1
vote
1
answer
480
views
Network Query for Logged In User - Salesforce Mobile SDK
Unable to find any documentation on obtaining the logged in User's Id from the Salesforce Mobile SDK for React Native.
In apex the following would work:
select Id, username from User where Id = :...