Questions tagged [cordova]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
31 views

MC - Cordova - AppPush conflict issue

During the process of implementing the MC SDK with my app, there is a conflict between the 3rd Party App Push and the SDK inserted in the marketing cloud, so I'm unable to proceed further. Our app is ...
  • 21
0 votes
0 answers
35 views

(iOS) Issue concerning system token using Cordova plugin

I am developing a mobile application using Ionic and I've tried to include the MC-Cordova plugin (https://github.com/salesforce-marketingcloud/MC-Cordova-Plugin). The point is that I have everything ...
0 votes
0 answers
18 views

Logout of hybridapplication using SalesforceMobileSDK

Logout of a hybrid remote application using SalesforceMobileSDK I am creating a hybrid remote application using SalesforceMobileSDK on iOS. The experience site is displayed. When I press logout on the ...
  • 9
0 votes
0 answers
37 views

MoiblePush API error 20002

we are trying to call /device/v1/registration with { "deviceId": "xxxxxx", "etappid" : "00000000-0000-0000-0000-0000000000000", "device_token&...
0 votes
0 answers
80 views

Failed to load resource: too many HTTP redirects, getting this error for the first time only while downloading a file,it is specific to IOS

I have an hybrid app, build using SalesforceMobileSDK and cordova, I am trying to download a resource from Salesforce ORG by adding the URL of that resource in HTML Script tag and I am getting Failed ...
0 votes
0 answers
19 views

Hiding Settings Icon in Cordova Hybrid App

Goal: Hiding the Settings Icon, so that the user cannot alter the server they're trying to login into / select a different one. I've tried this here: Hide Settings Icon in iOS hybrid remote app I ...
0 votes
0 answers
35 views

Hide Settings Icon in iOS through Cordova hooks

I am following these steps Hide Settings Icon in iOS hybrid remote app to remove the setting ICON by editing the AppDelegate+SalesforceHybridSDK.m I am making changes in this path ../platforms/ios/...
1 vote
1 answer
1k views

MC-Cordova-Plugin support for Android 12 (SDK 31) - app crashes upon startup: java.lang.IllegalArgumentException

I am currently trying to get our app working against SDK 31 / Android 12, but I'm running into an issue specifically with the cordova-plugin-marketingcloudsdk or MC-Cordova-Plugin. We are currently ...
  • 121
3 votes
2 answers
272 views

Force logout and database clearing in background mode after 9.1.1+ Salesforce MobileSDK update

We are facing a problem on IOS(iPad OS) devices when authorized users are logged out from applications when they hide applications in background mode. This problem appears after we had updated Mobile ...
0 votes
0 answers
83 views

Marketing Cloud Cordova SDK notification only showing silently

We are using the Marketing Cloud SDK Cordova Plugin in our app. Registering the contactKey works fine but when we send the push notification, although device is receiving it, we don't get a Pop up ...
  • 41
2 votes
0 answers
272 views

Error building app Cordova marketing Cloud sdk

I have an app using React Js and Cordova, I need to integrate it with [Marketing Cloud SDK], I followed the instruction that the plugin mentions, but it throws me an error when compiling The error it ...
  • 21
0 votes
0 answers
191 views

MarketingCloudSdk#init has not been called in android. push notification getDevice is not returning any values

We have implemented push notification with cordova-plugin-marketingcloudsdk few years back in our Cordova app (as per package.json the version it shows 7.1.0) In IOS, push notification is working fine....
  • 101
0 votes
3 answers
4k views

Getting "cross origin requests are only supported for http" error after login in salesforce based cordova hybrid ios app

Project configuration Salesforce mobile SDK Cordova plugin version: 8.2.0. Cordova ios: 5.1.1. Type of application: Local. After login, I am getting below error. cross origin requests are only ...
1 vote
5 answers
737 views

Has anyone used the Mobile SDK with Capacitor?

The Salesforce Mobile SDK has a cordova plugin. The Capacitor platform supports most but not all Cordova plugins (see known incompatability list). Does anyone know if the Salesforce mobile sdk cordova ...
  • 617
0 votes
1 answer
111 views

Salesforce Marketing Cloud Mobile Push Cordova Plugin - Navigate subscriber to a particular screen in the app rather than home screen

We are using Marketing Cloud Cordova Plugin for sending push messages from Marketing Cloud. When we send the push message, and when I click on the push message it goes on the home screen of the app. ...
  • 641
1 vote
0 answers
120 views

Migration of existing forcehybrid apps from AngularJS to Angular

We have an existing app running on Cordova 9.0.0, forcehybrid CLI 7.3.0 and Salesforce SDK 7.2.0 which is built using AngularJS v1.7.5. As it is known that AngularJS is deprecated and is not actively ...
0 votes
1 answer
139 views

"file is not a database" error - Conflict between SF SDK Cordova plugin and Cordova Plugin File

We have come across a bad issue on android where the user installs the app on an android device and logs into Salesforce with it. Then they uninstall the app, reinstall it, and login again. The first ...
  • 617
0 votes
1 answer
314 views

MobilePush Notification for Marketing Cloud Cordova plugn not displayed

We are using Marketing CLoud Cordova plugin (https://github.com/salesforce-marketingcloud/MC-Cordova-Plugin) to implement MobilePush notification on the App but its not working when the Cordova plugin ...
0 votes
1 answer
486 views

how to implement custom key in mobile app with sfmc cordova plugin

mobile app uses MC Cordova plug in to receive push notification. Push messages are published from Marketing Cloud and we are trying to use custom keys to add metadata in the payload. The custom keys ...
0 votes
1 answer
65 views

MCCordovaPlugin, getting Push Notifications only when contactKey is set to my phone number?

I don't remember if my phone number is somehow tied to sending push notifications or not. At this point, I am always able to successfully send and receive outbound push notifications if i ...
0 votes
1 answer
140 views

Salesforce Marketing Cloud - MobilePush - Cordova Plugin Android integration Issue

I am trying to integrate Salesforce Marketing Cloud SDK with Android using Cordova Plugin. But I am getting gradle build issues. Below is the Error: ERROR: Unable to resolve dependency for ':app@...
  • 31
1 vote
0 answers
109 views

MarketingCloud Cordova plugin not working [closed]

I have set up the Cordova plugin for Marketing Cloud but in Chrome Debugger console for my Android device, I can't see any call to Marketing Cloud servers. I have set the app_id, the access_token, ...
  • 11
0 votes
1 answer
218 views

Ionic Cordova windows 10 app with SalesforceMobileSDK

I am creating a hybrid app for Windows 10 using Ionic, Cordova and SalesforceMobileSDK-CordovaPlugin. I followed below steps - created ionic-cordova app: ionic start helloWorld sidemenu --type=ionic-...
0 votes
0 answers
131 views

Cordova Plugin crashes the app on launch

I'm having some problems with MC-Cordova-Plugin. When I install it, it crashes the app. Whithout it the app runs seamlessly. With the plugin installed, I can build it with no problems, but when I try ...
0 votes
1 answer
114 views

Marketing Cloud Cordova Plugin - iOS Push Notifications - entitlements required?

We are using Cordova for our mobile apps and hence we are in process of integrating Marketing Cloud Cordova Plugin with our cordova app. I had a question do we have to set aps-environment entitlement ...
  • 181
1 vote
1 answer
284 views

MC Cordova Plugin sfmc_setContactKey

We are using latest version v6 of https://github.com/salesforce-marketingcloud/MC-Cordova-Plugin. But when trying to create a contact, we don't see it in push contacts on Marketing Cloud. It looks as ...
4 votes
1 answer
199 views

NSDictionary representing Inbox Message Structure

What is the structure of the NSDictionaries representing Inbox messages that are returned in an Array by sfmc_getAllMessages? I'm trying to access the objects in each NSDictionary and need to know ...
1 vote
1 answer
369 views

Missing required properties: notificationCustomizationOptions error when using MC-Cordova-Plugin on Android

I am implementing the MC-Cordova-Plugin into an app. I am able to create an android build but when running it on a device, I receive this error. I have set this preference inside the android ...
2 votes
1 answer
500 views

Problems deeplinking out of the Salesforce App on Android

I have an Cordova mobile app that I want to be able to deeplink to from the Salesforce App. I am currently using Branch.io for the deeplinking. The problem is that when I click the deeplink from ...
  • 617
0 votes
1 answer
110 views

Marketing Cloud Cordova Plugin - Crash on iPhone 5 OS 10.3

I am developing an application using MCCordovaPlugin and just updated to v.1.0.3. All of the functions work well, but there is a problem : if using this updated MCCordovaPlugin, the app will crash on ...
2 votes
1 answer
455 views

Marketing Cloud - Push Notification iOS Title Not Set

Currently I made an application with push notification function from Marketing Cloud. I used MCCordovaPlugin (https://github.com/salesforce-marketingcloud/MC-Cordova-Plugin) to get the push ...
1 vote
1 answer
390 views

Marketing Cloud Cordova Plugin SetAttribute and clearAttribute - Intermittent Value Update

I've implemented MC Cordova Plugin (https://github.com/salesforce-marketingcloud/MC-Cordova-Plugin) for push notification through Marketing Cloud for hybrid mobile app, but encountering problems to ...
2 votes
2 answers
799 views

Marketing Cloud cordova plugin error can not enablePush - iOS

so i wanted to create a cordova hybrid app using SalesforceMobileSDK alongside MarketingCloud plugin for push notification. I've added SalesforceMobileSDK cordova plugin and so far it runs perfectly. ...
0 votes
2 answers
1k views

Marketing Cloud Cordova Plugin Push Notification Issue - iOS and Android

I've implemented MC Cordova Plugin (https://github.com/salesforce-marketingcloud/MC-Cordova-Plugin) for push notification through Marketing Cloud for hybrid mobile app, but encountering problems. On ...
0 votes
1 answer
998 views

Cannot receive push notification in iOS device

I am using this plugin : https://github.com/salesforce-marketingcloud/MC-Cordova-Plugin and I want to send push notification to both iOS and Android devices. The scenario is this : I open the app ...
  • 23
0 votes
2 answers
642 views

salesforce-marketingcloud android push no

I'm trying to integrate salesforce-marketingcloud Cordova plugin with an existing hybrid mobile application. I've created firebase account and all required details for android and ios and did all the ...
1 vote
2 answers
1k views

Cannot send push notification to iOS device

I have a Cordova app with the Marketing Cloud cordova plugin (https://github.com/salesforce-marketingcloud/MC-Cordova-Plugin). Although I had some difficulty to make it work on android (cf What is ...
  • 23
0 votes
2 answers
367 views

MCCordovaPLugin - Package R does not exist

I'm traying integrate Marketing Cloud Push Notifications using MCCordovaPlugin with Ionic 3, in iOS works fine, but when I compile for Android, console sends Error: Package R does not exist ...
0 votes
1 answer
252 views

What is the minimum version of Cordova required to use the Marketing Cloud Cordova plugin?

I want to integrate this plugin : https://github.com/salesforce-marketingcloud/MC-Cordova-Plugin into an already existing app that run Cordova 5.4.1. I can install the plugin but when I try to build ...
  • 23
2 votes
0 answers
130 views

Hybrid Remote on Mobile SDK 5+: how to handle cordova.js on iOS?

I'm currently making the move from MobileSDK 4.x to 5.2 for a hybrid remote app with Android and iOS builds, and I need some help on using cordova.js on iOS. I'm observing that cordova.js is not ...
  • 11.4k
0 votes
1 answer
94 views

Salesforce Mobile SDK error when fetch plugin SalesforceMobileSDK

I've been trying to create a hybrid application with sdk but at a point of creation it gives me the following error: Error: Failed to fetch plugin https://github.com/forcedotcom/SalesforceMobileSDK-...
  • 546
2 votes
2 answers
455 views

Why do we need the com.salesforce plugin for cordova apps?

I have a lingering question. For Hybrid Salesforce Apps, why do we need the 'com.salesforce' cordova plugin? We are able to fetch the Salesforce data using the ForceJS library as it is? :)
1 vote
0 answers
114 views

Ionic2 & SalesforceMobileSDK-CordovaPlugin not working toghter

did any of you succeeded in impl ionic2 (3.0.0) & SalesforceMobileSDK plugin?? i just want the OAuth2 flow (login screen etc..). i saw this tutorial http://coenraets.org/blog/2016/12/sample-...
0 votes
1 answer
214 views

SalesforceMobileSDK-CordovaPlugin iOS Unable To Launch the Startpage

cordova create cd npm init npm install shelljs@0.7.0 --save cordova plugin add phonegap-plugin-barcodescanner cordova plugin add https://github.com/forcedotcom/...
2 votes
2 answers
455 views

salesforce mobile sdk 5.0 CORS error while rest api using force.js

I'm getting the CORS error while doing REST api call on Salesforce using the new force.js library. I've also added question on Salesforce Dev Forum: https://developer.salesforce.com/forums/ForumsMain?...
1 vote
1 answer
800 views

Android Hybrid Remote App - On clicking Push notification open a specific app Page instead of Landing Page

I have implemented a hybrid remote app for our Salesforce Community and also activated Push notifications for same. By default, whenever you gets a push notification, tapping on it opens the app with ...
1 vote
0 answers
43 views

ERROR Cordova Salesforce andoidSDK app

I successfully create application using command line. forcedroid create Enter your application type: hybrid_local Enter your application name: myApp Enter the target directory of your app : Provided ...
  • 142
3 votes
0 answers
386 views

Cordova.js include in visualforce page

Incuding cordova.js in my visualforce page <apex:includeScript value="{!URLFOR($Resource.BPMobile, 'BPMobile/cordova/cordova.js')}" /> Getting the following in chrome console: Mixed ...
4 votes
0 answers
89 views

Cordova/iOS Capabilities

I tried searching for answers to my questions but I was unable to find any. I want to develop a native iOS application using cordova and I was wondering if it was possible to: Create a custom login ...
1 vote
0 answers
186 views

Customer Portal + Auth Provider + Connected App + Facebook Login + SalesforceMobileSDK-CordovaPlugin

When we login using Facebook it successfully redirects to the Facebook login page and if login username and password are correct then shows the authorisation of the Facebook developer app. when you ...