Giter Site home page Giter Site logo

microsoft / appcenter-sdk-cordova Goto Github PK

View Code? Open in Web Editor NEW
52.0 20.0 27.0 9.56 MB

App Center Preview SDK for Cordova

Home Page: http://appcenter.ms

License: MIT License

Java 34.55% Objective-C 37.04% CSS 1.35% HTML 6.74% JavaScript 19.13% Makefile 0.22% C++ 0.96%

appcenter-sdk-cordova's Introduction

Cordova support is retired in App Center

Check our blog post for more information.

App Center SDK for Apache Cordova

App Center is mission control for mobile apps. Get faster release cycles, higher-quality apps, and the insights to build what users want.

The App Center SDK consists of a several plugins so you can use any or all of the following services:

  1. App Center Analytics: App Center Analytics helps you understand user behavior and customer engagement to improve your app. The SDK automatically captures session count, device properties like model, OS version, etc. You can define your own custom events to measure things that matter to you. All the information captured is available in the App Center portal for you to analyze the data.

  2. App Center Crashes: App Center Crashes will automatically generate a crash log every time your app crashes. The log is first written to the device's storage and when the user starts the app again, the crash report will be sent to App Center. Collecting crashes works for both beta and live apps, i.e. those submitted to the App Store. Crash logs contain valuable information for you to help fix the crash.

  3. App Center Push: App Center Push enables you to send push notifications to users of your app from the App Center portal. We use APNs for iOS apps and FCM for Android. You can also segment your user base based on a set of properties and send them targeted notifications.

Sample application

You can get familiar with SDK quickly by cloning this repository and running sample app in sample directory. For further instructions please refer to sample's README

1. Installation

Add the App Center plugins that fit your needs directly from the Cordova CLI:

cordova plugin add cordova-plugin-appcenter-analytics
cordova plugin add cordova-plugin-appcenter-crashes
cordova plugin add cordova-plugin-appcenter-push

This will install all three of the plugins available today.

2. Link the SDK

To get it working in your app you will need to add some configuration values to your app configuration in config.xml file. See list of available parameters below

  • APP_SECRET - (required) App secret which enables App Center to map this app to the right user account

    Example:

    <platform name="android">
        <preference name="APP_SECRET" value="7a72dae0-f811-451b-8ae8-ecf7973e8359" />
    </platform>

    Notice that it's likely that Android and iOS platforms will be associated with different applications on App Center portal so you would need to add this preference twice - one for Android (as in example above) and another for iOS.

3. Configure Preferences

  • APPCENTER_ANALYTICS_ENABLE_IN_JS - (optional, default is "false") This preference controls whether Analytics will be enabled automatically (default option) or will require call to Analytics.setEnabled() in JS code before sending any usage data to App Center portal. This might be useful e.g. in case when an application may want to ask users whether they want to share analytics information.

    Example:

    <preference name="APPCENTER_ANALYTICS_ENABLE_IN_JS" value="true" />
  • APPCENTER_CRASHES_ALWAYS_SEND - (optional, default is "true") Specifies whether crash reports will always be sent automatically or would be available for processing in JavaScript code. Opting to process crashes first means more work for the developer, but greater control over user privacy and allows you to attach a message with a crash report.

    Example:

    <preference name="APPCENTER_CRASHES_ALWAYS_SEND" value="false" />

Push configuration

App Center Push plugin doesn't have it's own configuration preferences. Instead you will need to add Google FCM configuration for Android platform in your app. To do that simply follow the steps below:

  1. Download google-services.json from Firebase portal to your app directory

  2. Add the following snippet to Android platform section in your app's config.xml

    <resource-file src="google-services.json" target="google-services.json" />

    This will instruct Cordova to copy this file to platform directory at build time for further processing by Google Services plugin for Gradle

That's all - you've done configuring App Center Push in your app. For iOS there is no additional configuration is required.

Notice that there are still some additional actions need to be done on portal to connect App Center Push services to push providers.

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

appcenter-sdk-cordova's People

Contributors

achocron avatar andenavya avatar annakocheshkova avatar annaoomph avatar dhei avatar elamalani avatar evgeny-pol avatar guperrot avatar iamclement avatar jaeklim avatar lucen-ms avatar madhurajvadde avatar matkovivan avatar microsoftopensource avatar msftgits avatar owlstronaut avatar patniko avatar pradeeppran avatar pran-pradeep avatar radiantspace avatar ruslan-bikkinin avatar sergey-akhalkov avatar thyeggman avatar towerism avatar visiongeist avatar vladimir-kotikov avatar zakeelm avatar zhangcc01 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

appcenter-sdk-cordova's Issues

Unable to install through PhoneGap/Cordova

Description

I was trying to setup the App Center SDK to my app so I modified my config.xml which the information provided by this repository and the webpage https://appcenter.ms and I get an error in the "Shared" dependency, we originally created our project in DevExtreme and had no issues building and adding packages, but I cand add this SDK, If I remove it everything is back to normal.

config.xml

<all other basic config settings>
<plugin name="cordova-plugin-camera" />
<plugin name="cordova-plugin-device" />
<plugin name="cordova-plugin-dialogs" />
<plugin name="cordova-plugin-file" />
<plugin name="cordova-plugin-geolocation" />
<plugin name="cordova-plugin-inappbrowser" />
<plugin name="cordova-plugin-media" />
<plugin name="cordova-plugin-media-capture" />
<plugin name="cordova-plugin-network-information" />
<plugin name="cordova-plugin-splashscreen" onload="true" />
<plugin name="cordova-plugin-whitelist" />
<plugin name="cordova-plugin-ios-longpress-fix" />
<plugin name="cordova-plugin-statusbar" onload="true" />
<plugin name="cordova-plugin-email" />
<plugin name="cordova-pdf-generator" />
<plugin name="cordova-plugin-keychain-touch-id" />
<plugin name="cordova-plugin-app-version" />
<plugin name="cordova-plugin-cocoapod-support" />
<plugin name="cordova-plugin-appcenter-analytics" />
<plugin name="cordova-plugin-appcenter-crashes" />
<plugin name="cordova-plugin-appcenter-push" />
<access origin="*" />
<access origin="http://tickets.appshb.com" />

Details

  1. Which SDK version are you using?

    • e.g. 0.3.3
  2. Which OS version did you experience the issue on?

    • N/A
  3. What version of Cordova, Cordova platforms, Cocoapods, and Ruby are you using?

  4. What device version did you see this error on?

    • N/A

Output when trying to build app

download.txt

Crashes: `attachments` undefined

Description

  • With APPCENTER_CRASHES_ALWAYS_SEND = true, crashes logs no issue.
  • With APPCENTER_CRASHES_ALWAYS_SEND = false & using attachments, object is undefined hence .addTextAttachment() will always throw exception.
  • Then I set back the APPCENTER_CRASHES_ALWAYS_SEND = true, somehow the AppCenter.Crashes.process(processFunction, errorCallback) method still being called.

Details

  1. Which SDK version are you using?
    "cordova-plugin-appcenter-analytics": "^0.1.8",
    "cordova-plugin-appcenter-crashes": "^0.1.8",
    "cordova-plugin-appcenter-shared": "^0.1.8",

  2. Which OS version did you experience the issue on?

    • Android 7.0 (NRD90M)
    • not yet test on iOS
  3. What version of Cordova, Cordova platforms, Cocoapods, and Ruby are you using?

  4. What device version did you see this error on? Were you using a simulator or a physical device?

    • Samsung Galaxy S6 physical device
  5. What third party plugins are you using?

    • com.plugins.shortcut 0.1.1 "Home Shortcuts"
    • com.adi.plugin.keychainutil 0.0.1 "KeyChain Cordova Plugin"
    • com.bez4pieci.cookies 0.0.1 "Cookies"
    • com.simpleProdInc.calabashiOS 1.0.2 "CalabashiOS"
    • com.wongatech.cordova-disable-nsurl-cache 0.0.1-dev "CordovaDisableNSURLCache"
    • cordova-custom-config 3.1.2 "cordova-custom-config"
    • cordova-plugin-android-fingerprint-auth 1.3.1 "FingerprintAuth"
    • cordova-plugin-appcenter-analytics 0.1.8 "App Center Analytics for Cordova"
    • cordova-plugin-appcenter-crashes 0.1.8 "App Center Crashes for Cordova"
    • cordova-plugin-appcenter-shared 0.1.8 "App Center shared code for Cordova"
    • cordova-plugin-device 1.1.3 "Device"
    • cordova-plugin-email-composer 0.8.3 "EmailComposer"
    • cordova-plugin-jailbreak-detection 0.1.0 "Jailbreak Detection"
    • cordova-plugin-network-information 2.0.1 "Network Information"
    • cordova-plugin-root-detection 0.1.1 "Root Detection"
    • cordova-plugin-screen-orientation 1.4.2 "Screen Orientation"
    • cordova-plugin-splashscreen 4.1.0 "Splashscreen"
    • cordova-plugin-sslcertificatechecker 5.0.0 "SSL Certificate Checker"
    • cordova-plugin-statusbar 2.4.2-dev "StatusBar"
    • cordova-plugin-touchid 0.4.0 "Touch ID"
    • cordova-plugin-whitelist 1.3.0 "Whitelist"
    • cordova-sqlcipher-adapter 0.1.9 "Cordova sqlcipher adapter"
    • ionic-plugin-keyboard 2.2.1 "Keyboard"

error installing app center analytics

Description

Hi, I'm attempting to install App Center Analytics and receiving the following error:

$ cordova plugin add cordova-plugin-appcenter-analytics
Installing "cordova-plugin-appcenter-analytics" for android
Installing "cordova-plugin-appcenter-shared" for android
Android Studio project detected
Failed to install 'cordova-plugin-appcenter-shared': Error: Unquoted attribute value
Line: 1
Column: 31
Char: f
    at error (/Users/jamesdixon/Projects/scout/platform/mobile-staff/platforms/android/cordova/node_modules/sax/lib/sax.js:347:8)
    at strictFail (/Users/jamesdixon/Projects/scout/platform/mobile-staff/platforms/android/cordova/node_modules/sax/lib/sax.js:364:22)
    at SAXParser.write (/Users/jamesdixon/Projects/scout/platform/mobile-staff/platforms/android/cordova/node_modules/sax/lib/sax.js:913:11)
    at XMLParser.feed (/Users/jamesdixon/Projects/scout/platform/mobile-staff/platforms/android/cordova/node_modules/elementtree/lib/parsers/sax.js:48:15)
    at ElementTree.parse (/Users/jamesdixon/Projects/scout/platform/mobile-staff/platforms/android/cordova/node_modules/elementtree/lib/elementtree.js:271:10)
    at Object.exports.XML (/Users/jamesdixon/Projects/scout/platform/mobile-staff/platforms/android/cordova/node_modules/elementtree/lib/elementtree.js:606:13)
    at Object.parseElementtreeSync (/Users/jamesdixon/Projects/scout/platform/mobile-staff/platforms/android/cordova/node_modules/cordova-common/src/util/xml-helpers.js:185:38)
    at new AndroidManifest (/Users/jamesdixon/Projects/scout/platform/mobile-staff/platforms/android/cordova/lib/AndroidManifest.js:29:20)
    at AndroidProject.getPackageName (/Users/jamesdixon/Projects/scout/platform/mobile-staff/platforms/android/cordova/lib/AndroidProject.js:99:12)
    at Api.addPlugin (/Users/jamesdixon/Projects/scout/platform/mobile-staff/platforms/android/cordova/Api.js:223:57)
Failed to install 'cordova-plugin-appcenter-analytics': Error: Unquoted attribute value
Line: 1
Column: 31
Char: f
    at error (/Users/jamesdixon/Projects/scout/platform/mobile-staff/platforms/android/cordova/node_modules/sax/lib/sax.js:347:8)
    at strictFail (/Users/jamesdixon/Projects/scout/platform/mobile-staff/platforms/android/cordova/node_modules/sax/lib/sax.js:364:22)
odin:mobile-staff jamesdixon$ cordova plugin add cordova-plugin-appcenter-analytics
Installing "cordova-plugin-appcenter-analytics" for android
Installing "cordova-plugin-appcenter-shared" for android
Android Studio project detected
Failed to install 'cordova-plugin-appcenter-shared': Error: Unquoted attribute value
Line: 1
Column: 31
Char: f
    at error (/Users/jamesdixon/Projects/scout/platform/mobile-staff/platforms/android/cordova/node_modules/sax/lib/sax.js:347:8)
    at strictFail (/Users/jamesdixon/Projects/scout/platform/mobile-staff/platforms/android/cordova/node_modules/sax/lib/sax.js:364:22)
    at SAXParser.write (/Users/jamesdixon/Projects/scout/platform/mobile-staff/platforms/android/cordova/node_modules/sax/lib/sax.js:913:11)
    at XMLParser.feed (/Users/jamesdixon/Projects/scout/platform/mobile-staff/platforms/android/cordova/node_modules/elementtree/lib/parsers/sax.js:48:15)
    at ElementTree.parse (/Users/jamesdixon/Projects/scout/platform/mobile-staff/platforms/android/cordova/node_modules/elementtree/lib/elementtree.js:271:10)
    at Object.exports.XML (/Users/jamesdixon/Projects/scout/platform/mobile-staff/platforms/android/cordova/node_modules/elementtree/lib/elementtree.js:606:13)
    at Object.parseElementtreeSync (/Users/jamesdixon/Projects/scout/platform/mobile-staff/platforms/android/cordova/node_modules/cordova-common/src/util/xml-helpers.js:185:38)
    at new AndroidManifest (/Users/jamesdixon/Projects/scout/platform/mobile-staff/platforms/android/cordova/lib/AndroidManifest.js:29:20)
    at AndroidProject.getPackageName (/Users/jamesdixon/Projects/scout/platform/mobile-staff/platforms/android/cordova/lib/AndroidProject.js:99:12)
    at Api.addPlugin (/Users/jamesdixon/Projects/scout/platform/mobile-staff/platforms/android/cordova/Api.js:223:57)
Failed to install 'cordova-plugin-appcenter-analytics': Error: Unquoted attribute value
Line: 1
Column: 31
Char: f
    at error (/Users/jamesdixon/Projects/scout/platform/mobile-staff/platforms/android/cordova/node_modules/sax/lib/sax.js:347:8)
    at strictFail (/Users/jamesdixon/Projects/scout/platform/mobile-staff/platforms/android/cordova/node_modules/sax/lib/sax.js:364:22)
    at SAXParser.write (/Users/jamesdixon/Projects/scout/platform/mobile-staff/platforms/android/cordova/node_modules/sax/lib/sax.js:913:11)
    at XMLParser.feed (/Users/jamesdixon/Projects/scout/platform/mobile-staff/platforms/android/cordova/node_modules/elementtree/lib/parsers/sax.js:48:15)
    at ElementTree.parse (/Users/jamesdixon/Projects/scout/platform/mobile-staff/platforms/android/cordova/node_modules/elementtree/lib/elementtree.js:271:10)
    at Object.exports.XML (/Users/jamesdixon/Projects/scout/platform/mobile-staff/platforms/android/cordova/node_modules/elementtree/lib/elementtree.js:606:13)
    at Object.parseElementtreeSync (/Users/jamesdixon/Projects/scout/platform/mobile-staff/platforms/android/cordova/node_modules/cordova-common/src/util/xml-helpers.js:185:38)
    at new AndroidManifest (/Users/jamesdixon/Projects/scout/platform/mobile-staff/platforms/android/cordova/lib/AndroidManifest.js:29:20)
    at AndroidProject.getPackageName (/Users/jamesdixon/Projects/scout/platform/mobile-staff/platforms/android/cordova/lib/AndroidProject.js:99:12)
    at Api.addPlugin (/Users/jamesdixon/Projects/scout/platform/mobile-staff/platforms/android/cordova/Api.js:223:57)
Unquoted attribute value
Line: 1
Column: 31
Char: f

Repro Steps

Please list the steps used to reproduce your issue.

I simply ran cordova plugin add cordova-plugin-appcenter-analytics

Details

  1. Which SDK version are you using?
    Attempting to install v0.3.0 of the plugin

  2. What version of Cordova, Cordova platforms, Cocoapods, and Ruby are you using?
    cordova: 8.1.2 ([email protected])
    cordova-ios: 4.5.4
    cordova-android: 7.1.0
    cocoapods: 1.5.3
    ruby: 2.3.7p456
    node: 8.12

  3. What third party plugins are you using?

com-badrit-base64 0.2.0 "Base64"
com-sarriaroman-photoviewer 1.1.18 "PhotoViewer"
cordova-android-support-gradle-release 1.4.5 "cordova-android-support-gradle-release"
cordova-background-geolocation 2.14.5 "BackgroundGeolocation"
cordova-background-geolocation-lt 2.14.0 "BackgroundGeolocation"
cordova-plugin-actionsheet 2.3.3 "ActionSheet"
cordova-plugin-add-swift-support 1.7.2 "AddSwiftSupport"
cordova-plugin-app-event 1.2.1 "Application Events"
cordova-plugin-app-version 0.1.9 "AppVersion"
cordova-plugin-appcenter-analytics 0.3.0 "App Center Analytics for Cordova"
cordova-plugin-appcenter-shared 0.3.0 "App Center shared code for Cordova"
cordova-plugin-background-fetch 5.4.1 "CDVBackgroundFetch"
cordova-plugin-camera 4.0.1 "Camera"
cordova-plugin-cocoalumberjack 0.0.4 "CocoaLumberjack"
cordova-plugin-compat 1.2.0 "Compat"
cordova-plugin-crosswalk-webview 2.4.0 "Crosswalk WebView Engine"
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-file 6.0.1 "File"
cordova-plugin-file-transfer 1.7.1 "File Transfer"
cordova-plugin-fingerprint-aio 1.3.8 "FingerprintAllInOne"
cordova-plugin-firebase 0.1.25 "Google Firebase Plugin"
cordova-plugin-hockeyapp 5.1.2 "HockeyApp"
cordova-plugin-inappbrowser 2.0.2 "InAppBrowser"
cordova-plugin-nativestorage 2.3.2 "NativeStorage"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-taptic-engine 2.1.0 "Taptic Engine"
cordova-plugin-telerik-imagepicker 2.2.3 "ImagePicker"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova-sqlite-storage 2.5.1 "Cordova sqlite storage plugin"
cordova.plugins.diagnostic 4.0.10 "Diagnostic"
de.appplant.cordova.plugin.local-notification 0.8.5 "LocalNotification"
ionic-plugin-keyboard 2.2.1 "Keyboard"
onesignal-cordova-plugin 2.4.5 "OneSignal Push Notifications"

Thanks!

Windows 7 install cordova-plugin-appcenter-analytics on a ionic 3 project

Failed to install 'cordova-plugin-appcenter-analytics': Error
at C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modu
les\cordova-lib\src\plugman\install.js:557:37
at _fulfilled (C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordo
va\node_modules\cordova-lib\node_modules\q\q.js:787:54)
at self.promiseDispatch.done (C:\Users\Administrator\AppData\Roaming\npm\nod
e_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:816:30)
at Promise.promise.promiseDispatch (C:\Users\Administrator\AppData\Roaming\n
pm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:749:13)
at C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modu
les\cordova-lib\node_modules\q\q.js:509:49
at flush (C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\no
de_modules\cordova-lib\node_modules\q\q.js:108:17)
at _combinedTickCallback (internal/process/next_tick.js:73:7)
at process._tickCallback (internal/process/next_tick.js:104:9)

Failed to restore plugin "cordova-plugin-appcenter-analytics" from config.xml. Y
ou might need to try adding it again. Error: Version of installed plugin: "cordo
[email protected]" does not satisfy dependency plugin requirement
"cordova-plugin-appcenter-shared@^0.1.3". Try --force to use installed plugin a
s dependency.

I tried reinstall all plugins , still get this

I tried reinstall ionic@latest, still get this

I tried remove all node_modules , still get this.

test hook

Description

Please describe the issue you are facing or a feature you would like to be added to the SDK.

Repro Steps

Please list the steps used to reproduce your issue.

Details

  1. Which SDK version are you using?
    • e.g. 1.5.0
  2. Which OS version did you experience the issue on?
    • e.g. Android 8.1.0, iOS 11
  3. What version of Cordova, Cordova platforms, Cocoapods, and Ruby are you using?
    • e.g. Cordova version 8.0.0
  4. What device version did you see this error on? Were you using a simulator or a physical device?
    • e.g. Google Pixel 2 emulator, Samsung Galaxy S8 physical device
  5. What third party plugins are you using?
    • e.g. run "cordova plugins list" command and share your output

Error adding the plugin

Description

Can't add the plugin to my cordova project

###ERROR MESSAGE

Failed to install 'cordova-plugin-appcenter-shared': SyntaxError: Expected "/*", "//", or "{" but "u" found.
at peg$buildStructuredError (/Users/zeal/Desktop/programming/workarea/zeal/zeal3/platforms/ios/cordova/node_modules/xcode/lib/parser/pbxproj.js:412:12)
at Object.peg$parse [as parse] (/Users/zeal/Desktop/programming/workarea/zeal/zeal3/platforms/ios/cordova/node_modules/xcode/lib/parser/pbxproj.js:1886:11)
at pbxProject.parseSync (/Users/zeal/Desktop/programming/workarea/zeal/zeal3/platforms/ios/cordova/node_modules/xcode/lib/pbxProject.js:46:24)
at Object.parseProjectFile [as parse] (/Users/zeal/Desktop/programming/workarea/zeal/zeal3/platforms/ios/cordova/lib/projectFile.js:41:15)
at Api.addPlugin (/Users/zeal/Desktop/programming/workarea/zeal/zeal3/platforms/ios/cordova/Api.js:223:33)
at handleInstall (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:594:10)
at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:357:28
at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:787:54)
at self.promiseDispatch.done (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:816:30)
at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:749:13)

(node:3415) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): SyntaxError: Expected "/*", "//", or "{" but "u" found.
(node:3415) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Repro Steps

Please list the steps used to reproduce your issue.

  1. [email protected]

Details

  1. Which SDK version are you using?
    • 1.6.0
  2. Which OS version did you experience the issue on?
    • Installaion bug
  3. What version of Cordova, Cordova platforms, Cocoapods, and Ruby are you using?
    • Cordova version 8.0.0
  4. What third party plugins are you using?
    code-push 2.0.6 "CodePushAcquisition"
    cordova-plugin-actionsheet 2.3.3 "ActionSheet"
    cordova-plugin-android-permissions 1.0.0 "Permissions"
    cordova-plugin-app-version 0.1.9 "AppVersion"
    cordova-plugin-appcenter-push 0.1.7 "App Center Push for Cordova"
    cordova-plugin-appcenter-shared 0.1.6 "App Center shared code for Cordova"
    cordova-plugin-apprate 1.3.0 "AppRate"
    cordova-plugin-camera 4.0.3 "Camera"
    cordova-plugin-code-push 1.11.12 "CodePush"
    cordova-plugin-compat 1.2.0 "Compat"
    cordova-plugin-datepicker 0.9.3 "DatePicker"
    cordova-plugin-device 1.1.7 "Device"
    cordova-plugin-dialogs 2.0.1 "Notification"
    cordova-plugin-facebook4 1.10.1 "Facebook Connect"
    cordova-plugin-fcm 2.1.2 "FCMPlugin"
    cordova-plugin-file 4.3.3 "File"
    cordova-plugin-file-transfer 1.6.3 "File Transfer"
    cordova-plugin-geolocation 4.0.1 "Geolocation"
    cordova-plugin-globalization 1.11.0 "Globalization"
    cordova-plugin-inappbrowser 2.0.2 "InAppBrowser"
    cordova-plugin-ionic-keyboard 2.0.5 "cordova-plugin-ionic-keyboard"
    cordova-plugin-ionic-webview 1.2.1 "cordova-plugin-ionic-webview"
    cordova-plugin-nativestorage 2.3.1 "NativeStorage"
    cordova-plugin-network-information 2.0.1 "Network Information"
    cordova-plugin-sms 1.0.5 "SMS"
    cordova-plugin-splashscreen 4.1.0 "Splashscreen"
    cordova-plugin-statusbar 2.4.2 "StatusBar"
    cordova-plugin-whitelist 1.3.3 "Whitelist"
    cordova-plugin-zip 3.1.0 "cordova-plugin-zip"
    cordova-sms-plugin 0.1.11 "Cordova SMS Plugin"
    cordova-sqlite-storage 2.3.1 "Cordova sqlite storage plugin"
    ionic-plugin-keyboard 2.2.1 "Keyboard"
    sentry-cordova 0.11.0 "Sentry"
    uk.co.workingedge.phonegap.plugin.launchnavigator 4.2.0 "Launch Navigator"

error while installing appcenter analytics plugin

I am getting this errors on terminal while installing cordova appcenter plugin
command: cordova plugin add cordova-plugin-appcenter-analytics

ERRORS:

$ cordova plugin add cordova-plugin-appcenter-analytics
Installing "cordova-plugin-appcenter-analytics" for android
Installing "cordova-plugin-appcenter-shared" for android
Android Studio project detected
Subproject Path: CordovaLib
Subproject Path: app
Subproject Path: CordovaLib
Subproject Path: app
Installing "cordova-plugin-appcenter-analytics" for ios
Plugin dependency "[email protected]" already fetched, using that version.
Installing "cordova-plugin-appcenter-shared" for ios
Failed to install 'cordova-plugin-appcenter-shared': undefined
Failed to install 'cordova-plugin-appcenter-analytics': undefined
CordovaError: Promise rejected with non-error: 'Version should contain only numbers and dots'
    at cli.catch.err (/usr/local/lib/node_modules/cordova/bin/cordova:30:15)
    at processTicksAndRejections (internal/process/next_tick.js:81:5)

Environment is:

$ ionic info

Ionic:

   ionic (Ionic CLI)             : 4.9.0 (/usr/local/lib/node_modules/ionic)
   Ionic Framework               : @ionic/angular 4.0.0
   @angular-devkit/build-angular : 0.12.3
   @angular-devkit/schematics    : 7.2.3
   @angular/cli                  : 7.2.3
   @ionic/angular-toolkit        : 1.2.3

Cordova:

   cordova (Cordova CLI) : 8.1.2 ([email protected])
   Cordova Platforms     : android 7.1.4, ios 4.5.5
   Cordova Plugins       : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.3.2, (and 16 other plugins)

System:

   ios-deploy : 1.9.4
   ios-sim    : 7.0.0
   NodeJS     : v11.8.0 (/usr/local/bin/node)
   npm        : 6.5.0
   OS         : macOS Mojave
   Xcode      : Xcode 10.1 Build version 10B61

@annakocheshkova thanks

feat: Set app-secret dynamically in code

We have many automated build processes which set different variables depending on the OS and environment.

It would be great to be able to set the App Secret value through JS instead of in the config.xml file.

AppCenterShared.h:3:9: fatal error: module 'AppCenter' not found

Hi,

I'm getting below error while using Appcenter analytics, any help is appreciated.

2017-12-28T22:44:26.1149960Z CompileC /Users/vso113500/Library/Developer/Xcode/DerivedData/Pricing-fcqalxknpqhxryefmyisgmoyqcrl/Build/Intermediates.noindex/Pricing.build/Debug-iphonesimulator/Pricing.build/Objects-normal/x86_64/AppCenterShared.o Pricing/Plugins/cordova-plugin-appcenter-shared/AppCenterShared.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
2017-12-28T22:44:26.1182350Z     cd /Users/vso113500/vsts-agent/_work/4/s/platforms/ios
2017-12-28T22:44:26.1213280Z     export LANG=en_US.US-ASCII
2017-12-28T22:44:26.1246550Z     export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/vso113500/vsts-agent/_work/4/s/node_modules/.bin:/Users/vso113500/.taco_home/node_modules/cordova/8.0.0/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Server.app/Contents/ServerRoot/usr/bin:/Applications/Server.app/Contents/ServerRoot/usr/sbin:/usr/local/share/dotnet:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/local/munki"
2017-12-28T22:44:26.1338090Z     /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c99 -fobjc-arc -fmodules -gmodules -fmodules-cache-path=/Users/vso113500/Library/Developer/Xcode/DerivedData/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/vso113500/Library/Developer/Xcode/DerivedData/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=9.0 -g -fvisibility=hidden -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -fobjc-abi-version=2 -fobjc-legacy-dispatch -index-store-path /Users/vso113500/Library/Developer/Xcode/DerivedData/Pricing-fcqalxknpqhxryefmyisgmoyqcrl/Index/DataStore -iquote /Users/vso113500/Library/Developer/Xcode/DerivedData/Pricing-fcqalxknpqhxryefmyisgmoyqcrl/Build/Intermediates.noindex/Pricing.build/Debug-iphonesimulator/Pricing.build/Pricing-generated-files.hmap -I/Users/vso113500/Library/Developer/Xcode/DerivedData/Pricing-fcqalxknpqhxryefmyisgmoyqcrl/Build/Intermediates.noindex/Pricing.build/Debug-iphonesimulator/Pricing.build/Pricing-own-target-headers.hmap -I/Users/vso113500/Library/Developer/Xcode/DerivedData/Pricing-fcqalxknpqhxryefmyisgmoyqcrl/Build/Intermediates.noindex/Pricing.build/Debug-iphonesimulator/Pricing.build/Pricing-all-target-headers.hmap -iquote /Users/vso113500/Library/Developer/Xcode/DerivedData/Pricing-fcqalxknpqhxryefmyisgmoyqcrl/Build/Intermediates.noindex/Pricing.build/Debug-iphonesimulator/Pricing.build/Pricing-project-headers.hmap -I/Users/vso113500/vsts-agent/_work/4/s/platforms/ios/build/emulator/include -I/Users/vso113500/vsts-agent/_work/4/s/platforms/ios/build/emulator/usr/local/lib/include -I/Users/vso113500/Library/Developer/Xcode/DerivedData/Pricing-fcqalxknpqhxryefmyisgmoyqcrl/Build/Intermediates.noindex/UninstalledProducts/include -I/Users/vso113500/Library/Developer/Xcode/DerivedData/Pricing-fcqalxknpqhxryefmyisgmoyqcrl/Build/Intermediates.noindex/UninstalledProducts/iphonesimulator/include -I/Users/vso113500/vsts-agent/_work/4/s/platforms/ios/build/emulator -I/Users/vso113500/Library/Developer/Xcode/DerivedData/Pricing-fcqalxknpqhxryefmyisgmoyqcrl/Build/Intermediates.noindex/Pricing.build/Debug-iphonesimulator/Pricing.build/DerivedSources/x86_64 -I/Users/vso113500/Library/Developer/Xcode/DerivedData/Pricing-fcqalxknpqhxryefmyisgmoyqcrl/Build/Intermediates.noindex/Pricing.build/Debug-iphonesimulator/Pricing.build/DerivedSources -F/Users/vso113500/vsts-agent/_work/4/s/platforms/ios/build/emulator -include /Users/vso113500/vsts-agent/_work/4/s/platforms/ios/build/sharedpch/Pricing-Prefix-abtksipjaymisgazhuebmntepltg/Pricing-Prefix.pch -MMD -MT dependencies -MF /Users/vso113500/Library/Developer/Xcode/DerivedData/Pricing-fcqalxknpqhxryefmyisgmoyqcrl/Build/Intermediates.noindex/Pricing.build/Debug-iphonesimulator/Pricing.build/Objects-normal/x86_64/AppCenterShared.d --serialize-diagnostics /Users/vso113500/Library/Developer/Xcode/DerivedData/Pricing-fcqalxknpqhxryefmyisgmoyqcrl/Build/Intermediates.noindex/Pricing.build/Debug-iphonesimulator/Pricing.build/Objects-normal/x86_64/AppCenterShared.dia -c /Users/vso113500/vsts-agent/_work/4/s/platforms/ios/Pricing/Plugins/cordova-plugin-appcenter-shared/AppCenterShared.m -o /Users/vso113500/Library/Developer/Xcode/DerivedData/Pricing-fcqalxknpqhxryefmyisgmoyqcrl/Build/Intermediates.noindex/Pricing.build/Debug-iphonesimulator/Pricing.build/Objects-normal/x86_64/AppCenterShared.o
2017-12-28T22:44:26.1389800Z In file included from /Users/vso113500/vsts-agent/_work/4/s/platforms/ios/Pricing/Plugins/cordova-plugin-appcenter-shared/AppCenterShared.m:2:
2017-12-28T22:44:26.1410780Z /Users/vso113500/vsts-agent/_work/4/s/platforms/ios/Pricing/Plugins/cordova-plugin-appcenter-shared/AppCenterShared.h:3:9: fatal error: module 'AppCenter' not found
2017-12-28T22:44:26.1428990Z @import AppCenter;
2017-12-28T22:44:26.1447520Z  ~~~~~~~^~~~~~~~~
2017-12-28T22:44:26.1470810Z 1 error generated.
2017-12-28T22:44:26.1483730Z 
2017-12-28T22:44:26.1516400Z CompileC /Users/vso113500/Library/Developer/Xcode/DerivedData/Pricing-fcqalxknpqhxryefmyisgmoyqcrl/Build/Intermediates.noindex/Pricing.build/Debug-iphonesimulator/Pricing.build/Objects-normal/x86_64/AppCenterAnalyticsPlugin.o Pricing/Plugins/cordova-plugin-appcenter-analytics/AppCenterAnalyticsPlugin.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
2017-12-28T22:44:26.1569210Z     cd /Users/vso113500/vsts-agent/_work/4/s/platforms/ios
2017-12-28T22:44:26.1599560Z     export LANG=en_US.US-ASCII
2017-12-28T22:44:26.1624220Z     export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/vso113500/vsts-agent/_work/4/s/node_modules/.bin:/Users/vso113500/.taco_home/node_modules/cordova/8.0.0/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Server.app/Contents/ServerRoot/usr/bin:/Applications/Server.app/Contents/ServerRoot/usr/sbin:/usr/local/share/dotnet:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/usr/local/munki"
2017-12-28T22:44:26.1681370Z     /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c99 -fobjc-arc -fmodules -gmodules -fmodules-cache-path=/Users/vso113500/Library/Developer/Xcode/DerivedData/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/vso113500/Library/Developer/Xcode/DerivedData/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.1.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=9.0 -g -fvisibility=hidden -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -fobjc-abi-version=2 -fobjc-legacy-dispatch -index-store-path /Users/vso113500/Library/Developer/Xcode/DerivedData/Pricing-fcqalxknpqhxryefmyisgmoyqcrl/Index/DataStore -iquote /Users/vso113500/Library/Developer/Xcode/DerivedData/Pricing-fcqalxknpqhxryefmyisgmoyqcrl/Build/Intermediates.noindex/Pricing.build/Debug-iphonesimulator/Pricing.build/Pricing-generated-files.hmap -I/Users/vso113500/Library/Developer/Xcode/DerivedData/Pricing-fcqalxknpqhxryefmyisgmoyqcrl/Build/Intermediates.noindex/Pricing.build/Debug-iphonesimulator/Pricing.build/Pricing-own-target-headers.hmap -I/Users/vso113500/Library/Developer/Xcode/DerivedData/Pricing-fcqalxknpqhxryefmyisgmoyqcrl/Build/Intermediates.noindex/Pricing.build/Debug-iphonesimulator/Pricing.build/Pricing-all-target-headers.hmap -iquote /Users/vso113500/Library/Developer/Xcode/DerivedData/Pricing-fcqalxknpqhxryefmyisgmoyqcrl/Build/Intermediates.noindex/Pricing.build/Debug-iphonesimulator/Pricing.build/Pricing-project-headers.hmap -I/Users/vso113500/vsts-agent/_work/4/s/platforms/ios/build/emulator/include -I/Users/vso113500/vsts-agent/_work/4/s/platforms/ios/build/emulator/usr/local/lib/include -I/Users/vso113500/Library/Developer/Xcode/DerivedData/Pricing-fcqalxknpqhxryefmyisgmoyqcrl/Build/Intermediates.noindex/UninstalledProducts/include -I/Users/vso113500/Library/Developer/Xcode/DerivedData/Pricing-fcqalxknpqhxryefmyisgmoyqcrl/Build/Intermediates.noindex/UninstalledProducts/iphonesimulator/include -I/Users/vso113500/vsts-agent/_work/4/s/platforms/ios/build/emulator -I/Users/vso113500/Library/Developer/Xcode/DerivedData/Pricing-fcqalxknpqhxryefmyisgmoyqcrl/Build/Intermediates.noindex/Pricing.build/Debug-iphonesimulator/Pricing.build/DerivedSources/x86_64 -I/Users/vso113500/Library/Developer/Xcode/DerivedData/Pricing-fcqalxknpqhxryefmyisgmoyqcrl/Build/Intermediates.noindex/Pricing.build/Debug-iphonesimulator/Pricing.build/DerivedSources -F/Users/vso113500/vsts-agent/_work/4/s/platforms/ios/build/emulator -include /Users/vso113500/vsts-agent/_work/4/s/platforms/ios/build/sharedpch/Pricing-Prefix-abtksipjaymisgazhuebmntepltg/Pricing-Prefix.pch -MMD -MT dependencies -MF /Users/vso113500/Library/Developer/Xcode/DerivedData/Pricing-fcqalxknpqhxryefmyisgmoyqcrl/Build/Intermediates.noindex/Pricing.build/Debug-iphonesimulator/Pricing.build/Objects-normal/x86_64/AppCenterAnalyticsPlugin.d --serialize-diagnostics /Users/vso113500/Library/Developer/Xcode/DerivedData/Pricing-fcqalxknpqhxryefmyisgmoyqcrl/Build/Intermediates.noindex/Pricing.build/Debug-iphonesimulator/Pricing.build/Objects-normal/x86_64/AppCenterAnalyticsPlugin.dia -c /Users/vso113500/vsts-agent/_work/4/s/platforms/ios/Pricing/Plugins/cordova-plugin-appcenter-analytics/AppCenterAnalyticsPlugin.m -o /Users/vso113500/Library/Developer/Xcode/DerivedData/Pricing-fcqalxknpqhxryefmyisgmoyqcrl/Build/Intermediates.noindex/Pricing.build/Debug-iphonesimulator/Pricing.build/Objects-normal/x86_64/AppCenterAnalyticsPlugin.o
2017-12-28T22:44:26.1722000Z 
2017-12-28T22:44:26.1737540Z ** BUILD FAILED **

Config.xml, AppCenter plugin lists looks like this:
<plugin name="cordova-plugin-appcenter-analytics" spec="^0.1.3" /> <plugin name="cordova-plugin-appcenter-crashes" spec="^0.1.3" /> <plugin name="cordova-plugin-appcenter-push" spec="^0.1.3" /> <plugin name="cordova-plugin-cocoapod-support" spec="1.1.1" />

Build Failed with Exception. Not finding appcenter file.

Hi,
i installed via npm cordova-pluing-appcenter-analytics, set the app secret in the config.xml, but when i build the app it show up an error tha not found some appcenter files.

Severity	Code	Description	Project	File	Line	Suppression State
FAILURE: Build failed with an exception.	APPVOTACIONES
* What went wrong:	APPVOTACIONES
A problem occurred configuring root project 'android'.	APPVOTACIONES
> Could not resolve all dependencies for configuration ':_debugCompile'.	APPVOTACIONES
 > Could not find com.microsoft.appcenter:appcenter:1.8.0.	APPVOTACIONES
 Searched in the following locations:	APPVOTACIONES
 https://repo1.maven.org/maven2/com/microsoft/appcenter/appcenter/1.8.0/appcenter-1.8.0.pom	APPVOTACIONES
 https://repo1.maven.org/maven2/com/microsoft/appcenter/appcenter/1.8.0/appcenter-1.8.0.jar	APPVOTACIONES
 file:/C:/Program Files (x86)/Android/android-sdk/extras/android/m2repository/com/microsoft/appcenter/appcenter/1.8.0/appcenter-1.8.0.pom	APPVOTACIONES
 file:/C:/Program Files (x86)/Android/android-sdk/extras/android/m2repository/com/microsoft/appcenter/appcenter/1.8.0/appcenter-1.8.0.jar	APPVOTACIONES
 Required by:	APPVOTACIONES
 :android:unspecified	APPVOTACIONES
 > Could not find com.microsoft.appcenter:appcenter-analytics:1.8.0.	APPVOTACIONES
 Searched in the following locations:	APPVOTACIONES
 https://repo1.maven.org/maven2/com/microsoft/appcenter/appcenter-analytics/1.8.0/appcenter-analytics-1.8.0.pom	APPVOTACIONES
 https://repo1.maven.org/maven2/com/microsoft/appcenter/appcenter-analytics/1.8.0/appcenter-analytics-1.8.0.jar	APPVOTACIONES
 file:/C:/Program Files (x86)/Android/android-sdk/extras/android/m2repository/com/microsoft/appcenter/appcenter-analytics/1.8.0/appcenter-analytics-1.8.0.pom	APPVOTACIONES
 file:/C:/Program Files (x86)/Android/android-sdk/extras/android/m2repository/com/microsoft/appcenter/appcenter-analytics/1.8.0/appcenter-analytics-1.8.0.jar	APPVOTACIONES
 Required by:	APPVOTACIONES
 :android:unspecified	APPVOTACIONES
 > Could not find com.microsoft.appcenter:appcenter-crashes:1.8.0.	APPVOTACIONES
 Searched in the following locations:	APPVOTACIONES
 https://repo1.maven.org/maven2/com/microsoft/appcenter/appcenter-crashes/1.8.0/appcenter-crashes-1.8.0.pom	APPVOTACIONES
 https://repo1.maven.org/maven2/com/microsoft/appcenter/appcenter-crashes/1.8.0/appcenter-crashes-1.8.0.jar	APPVOTACIONES
 file:/C:/Program Files (x86)/Android/android-sdk/extras/android/m2repository/com/microsoft/appcenter/appcenter-crashes/1.8.0/appcenter-crashes-1.8.0.pom	APPVOTACIONES
 file:/C:/Program Files (x86)/Android/android-sdk/extras/android/m2repository/com/microsoft/appcenter/appcenter-crashes/1.8.0/appcenter-crashes-1.8.0.jar	APPVOTACIONES
 Required by:	APPVOTACIONES
 :android:unspecified	APPVOTACIONES
* Try:	APPVOTACIONES
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.	APPVOTACIONES
Error code 1 for command: cmd with args: /s,/c,"C:\Users\cararcac\Documents\ProyectosDM\INFOVOTANTES\Movil\ConsultaAnticorrupcion\DEV_1\APPVOTACIONES\platforms\android\gradlew cdvBuildDebug -b C:\Users\cararcac\Documents\ProyectosDM\INFOVOTANTES\Movil\ConsultaAnticorrupcion\DEV_1\APPVOTACIONES\platforms\android\build.gradle -Dorg.gradle.daemon=true -Pandroid.useDeprecatedNdk=true"	APPVOTACIONES

My config.xml:

<?xml version="1.0" encoding="utf-8"?>
<widget defaultLocale="es-ES" id="com.carvajal.infovotantes.tablero" version="2.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:cdv="http://cordova.apache.org/ns/1.0">
  <name>Infovotantes Tablero</name>
  <description>An Ionic Framework and Cordova project for Visual Studio</description>
  <author email="[email protected]" href="http://taco.visualstudio.com">Desarrollo a la Medida</author>
  <content src="index.html" />
  <access origin="*" />
  <preference name="webviewbounce" value="false" />
  <preference name="UIWebViewBounce" value="false" />
  <preference name="DisallowOverscroll" value="true" />
  <preference name="SplashScreenDelay" value="5000" />
  <preference name="ShowSplashScreenSpinner" value="false" />
  <preference name="SplashShowOnlyFirstTime" value="false" />
  <preference name="FadeSplashScreenDuration" value="2000" />
  <preference name="android-minSdkVersion" value="16" />
  <preference name="BackupWebStorage" value="none" />
  <feature name="StatusBar">
    <param name="ios-package" onload="true" value="CDVStatusBar" />
  </feature>
  <preference name="windows-target-version" value="8.1" />
  <platform name="android">
    <preference name="APP_SECRET" value="5d6e0216-a891-4bed-94f0-40f8158d86b4" />
    <icon density="ldpi" src="resources/android/icon/drawable-ldpi-icon.png" />
    <icon density="mdpi" src="resources/android/icon/drawable-mdpi-icon.png" />
    <icon density="hdpi" src="resources/android/icon/drawable-hdpi-icon.png" />
    <icon density="xhdpi" src="resources/android/icon/drawable-xhdpi-icon.png" />
    <icon density="xxhdpi" src="resources/android/icon/drawable-xxhdpi-icon.png" />
    <icon density="xxxhdpi" src="resources/android/icon/drawable-xxxhdpi-icon.png" />
    <splash density="land-ldpi" src="resources/android/splash/drawable-land-ldpi-screen.png" />
    <splash density="land-mdpi" src="resources/android/splash/drawable-land-mdpi-screen.png" />
    <splash density="land-hdpi" src="resources/android/splash/drawable-land-hdpi-screen.png" />
    <splash density="land-xhdpi" src="resources/android/splash/drawable-land-xhdpi-screen.png" />
    <splash density="land-xxhdpi" src="resources/android/splash/drawable-land-xxhdpi-screen.png" />
    <splash density="land-xxxhdpi" src="resources/android/splash/drawable-land-xxxhdpi-screen.png" />
    <splash density="port-ldpi" src="resources/android/splash/drawable-port-ldpi-screen.png" />
    <splash density="port-mdpi" src="resources/android/splash/drawable-port-mdpi-screen.png" />
    <splash density="port-hdpi" src="resources/android/splash/drawable-port-hdpi-screen.png" />
    <splash density="port-xhdpi" src="resources/android/splash/drawable-port-xhdpi-screen.png" />
    <splash density="port-xxhdpi" src="resources/android/splash/drawable-port-xxhdpi-screen.png" />
    <splash density="port-xxxhdpi" src="resources/android/splash/drawable-port-xxxhdpi-screen.png" />
  </platform>
  <preference name="Orientation" value="portrait" />
  <plugin name="cordova-plugin-console" spec="~1.0.3" />
  <plugin name="cordova-plugin-device" spec="~1.1.2" />
  <plugin name="cordova-plugin-device-orientation" spec="1.0.3" />
  <plugin name="cordova-plugin-dialogs" spec="1.2.1" />
  <plugin name="cordova-plugin-network-information" spec="1.2.1" />
  <plugin name="cordova-plugin-splashscreen" spec="~3.2.2" />
  <plugin name="cordova-plugin-statusbar" spec="~2.1.3" />
  <plugin name="cordova-plugin-whitelist" spec="~1.2.2" />
  <plugin name="cordova-sqlite-storage" spec="https://github.com/litehelpers/Cordova-sqlite-storage" />
  <plugin name="ionic-plugin-keyboard" spec="~2.2.1" />
  <plugin name="cordova-plugin-file" version="4.3.3" />
  <plugin name="io.github.siegfriedbolz.cordova.plugins.fileopener2" src="https://github.com/siegfriedbolz/cordova-plugin-file-opener2.git" version="1.0.6" />
  <plugin name="cordova-plugin-app-version" version="0.1.9" />
  <plugin name="cordova-plugin-appversion" version="1.0.0" />
  <plugin name="cordova-plugin-vs-taco-support" version="0.2.0" />
  <plugin name="cordova-custom-config" spec="^5.0.2" />
  <plugin name="cordova-plugin-root-detection" spec="^0.1.1" />
  <plugin name="cordova-plugin-jailbreak-detection" spec="https://github.com/leecrossley/cordova-plugin-jailbreak-detection.git" />
  <plugin name="cordova-plugin-geolocation" spec="~2.4.3" />
  <plugin name="cordova-plugin-proguard" spec="^1.0.0" />
  <plugin name="cordova-plugin-allow-backup" version="0.0.2" />
  <plugin name="cordova-plugin-appcenter-analytics" version="0.1.8" />
  <plugin name="cordova-plugin-appcenter-crashes" version="0.1.8" />
  <plugin name="cordova-plugin-appcenter-shared" version="0.1.8" />
</widget>

My Config:

Cordova CLI Version: 8.0.0
cordova-android: Android Platform 5.1.1
Ionic v1
AngularJS

PhoneGapBuild build error

I just added cordova-plugin-appcenter-analytics to my cordova project (using cli 9.0.0) and gut the following error from PhoneGapBuild service when building for iOS:

"plugman-151 install --platform ios --project /project --plugin cordova-plugin-appcenter-analytics@^0.4.0 --nohooks=.": Fetching plugin "cordova-plugin-appcenter-analytics@^0.4.0" via npm
Installing "cordova-plugin-appcenter-analytics" at "0.4.0" for ios
Fetching plugin "[email protected]" via npm
Installing "cordova-plugin-appcenter-shared" at "0.4.0" for ios
"framework" tag with type "podspec" is deprecated and will be removed. Please use the "podspec" tag.
Running command: pod install --verbose
Failed to install 'cordova-plugin-appcenter-shared': Error: pod: Command failed with exit code 1
at ChildProcess.whenDone (/private/project/cordova/node_modules/cordova-common/src/superspawn.js:135:23)
at ChildProcess.emit (events.js:182:13)
at maybeClose (internal/child_process.js:962:16)
at Socket.stream.socket.on (internal/child_process.js:381:11)
at Socket.emit (events.js:182:13)
at Pipe._handle.close (net.js:611:12)
Failed to install 'cordova-plugin-appcenter-analytics': Error: pod: Command failed with exit code 1
at ChildProcess.whenDone (/private/project/cordova/node_modules/cordova-common/src/superspawn.js:135:23)
at ChildProcess.emit (events.js:182:13)
at maybeClose (internal/child_process.js:962:16)
at Socket.stream.socket.on (internal/child_process.js:381:11)
at Socket.emit (events.js:182:13)
at Pipe._handle.close (net.js:611:12)
pod: Command failed with exit code 1

Any idea how could I make it work?

Thanks,
csaba

Ionic Typescript tracking custom events. AppCenter is not defined

How does one set this up with Ionic and Typescript and track custom events?

Note: I have the config.xml set and can see basic analytics. My issue is with custom trackEvents.

AppCenter.Analytics.trackEvent('Home Page Loaded'); does not work because AppCenter it is not defined.

All of these are tested on a basic/blank Ionic APP.

Solutions 1:

import * as AppCenter from 'cordova-plugin-appcenter-analytics/www/Analytics.js';
problem : build time error cordova/exec cannot be found

Solution 2:
import * as AppCenter from 'cordova-plugin-appcenter-analytics'
problem: cannot find module 'cordova-plugin-appcenter-analytics'.

Solution 3:
declare var AppCenter
problem: AppCenter is not defined.

How should this be integrated in a .ts file to get it working?

Additional Info:
Just create a basic Ionic APP with CLI.
Add the required cordova appcenter plugin's
Configure the config.xml with app_secret and enable analytics in js
Go to Homepage and try to send custom Analytics event

Unable to install cordova-plugin-appcenter-shared - "framework" tag with type "podspec" is deprecated and will be removed

Description

On a Windows machine using the Cordova client I cannot install "cordova-plugin-appcenter-shared" for ios.

iOS project created with [email protected]
Installing "cordova-plugin-appcenter-analytics" for ios
Plugin dependency "[email protected]" already fetched, using that version.
Installing "cordova-plugin-appcenter-shared" for ios
"framework" tag with type "podspec" is deprecated and will be removed. Please use the "podspec" tag.
shell.js: internal error

Repro Steps

Please list the steps used to reproduce your issue.

  1. cordova platform add ios
<plugin name="cordova-plugin-appcenter-analytics" spec="^0.3.3" />
<plugin name="cordova-plugin-appcenter-crashes" spec="^0.3.3" />

Details

  1. Which SDK version are you using?
    • v0.3.3
  2. Which OS version did you experience the issue on?
    • N/A
  3. What version of Cordova, Cordova platforms, Cocoapods, and Ruby are you using?
    • Cordova v9.0.0
  4. What device version did you see this error on? Were you using a simulator or a physical device?
    • N/A
  5. What third party plugins are you using?
cordova-plugin-appcenter-analytics 0.3.3 "App Center Analytics for Cordova"
cordova-plugin-appcenter-crashes 0.3.3 "App Center Crashes for Cordova"
cordova-plugin-appcenter-shared 0.3.3 "App Center shared code for Cordova"
cordova-plugin-badge 0.8.8 "Badge"
cordova-plugin-compat 1.2.0 "Compat"
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-device-name 1.3.5 "Device-Name"
cordova-plugin-file 6.0.1 "File"
cordova-plugin-itunesfilesharing 0.0.2 "cordova-plugin-itunesfilesharing"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova-sqlite-evcore-extbuild-free 0.9.10 "Cordova sqlite storage - free enterprise version with Android performance/memory improvements and extra features for PhoneGap Build"

AppCenter.Crashes not working on Android, property 'length' undefined

I have a property 'length' undefined error in my cordova when calling AppCenter.Crashes.(anymethod())

Cordova Android version: 5.2.2
Cordova version: 8.0.0
node version: 6.12.2
OS: Windows

appcenter

https://image.ibb.co/nJhLYH/appcenter.png

I tested this using USB Debugging on Chrome and it seems the error is in the cordova.js when calling the androidExec() function

androidexec

https://preview.ibb.co/cigQ0x/androidexec.png

I also built a release version of the app but still no luck.

AppCenterCrashes does not work

this.AppCenterCrashes.setEnabled(true).then(() => { this.AppCenterCrashes.lastSessionCrashReport().then(report => { console.log('Crash report', report); this.AppCenterCrashes.generateTestCrash(); }); });

AppCenterAnalytics works fine, but Crash report does not work.

Any idea?

NPM Install will fail due to missing dependency

Due to cordova-plugin-appcenter-shared not being on npm the install steps in the readme will fail.

cordova plugin add cordova-plugin-appcenter-analytics
cordova plugin add cordova-plugin-appcenter-crashes
cordova plugin add cordova-plugin-appcenter-push

All require appcenter-shared so this will need to be installed manually before these steps can be completed

Associating analytics + crashes with users

Is or will it be possible to automatically identify analytics and crashes based on a user identifier? I'd like to be able to isolate errors based on a user's id and session.

It would be great if the plugin could expose a setUserId() method for such purposes.

Thanks!

error installing app center analytics/crashes

Description

Hi, I'm attempting to install App Center Analytics/Crashes and receiving the following error:

$ cordova plugin add cordova-plugin-appcenter-crashes
Installing "cordova-plugin-appcenter-crashes" for android
Installing "cordova-plugin-appcenter-shared" for android
Android Studio project detected
Subproject Path: CordovaLib
Subproject Path: app
Subproject Path: CordovaLib
Subproject Path: app
Installing "cordova-plugin-appcenter-crashes" for ios
Plugin dependency "[email protected]" already fetched, using that version.
Installing "cordova-plugin-appcenter-shared" for ios
Failed to install 'cordova-plugin-appcenter-shared': Error: pod: Command failed with exit code 1
    at ChildProcess.whenDone (/Users/jamesdixon/Projects/scout/platform/mobile-staff/platforms/ios/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:915:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
Failed to install 'cordova-plugin-appcenter-crashes': Error: pod: Command failed with exit code 1
    at ChildProcess.whenDone (/Users/jamesdixon/Projects/scout/platform/mobile-staff/platforms/ios/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:915:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)

Repro Steps

Please list the steps used to reproduce your issue.

I simply ran cordova plugin add cordova-plugin-appcenter-crashes. I'm also receiving the same error when installing cordova-plugin-appcenter-analytics.

Details

  1. Which SDK version are you using?
    Attempting to install v0.3.0 of the plugin

  2. What version of Cordova, Cordova platforms, Cocoapods, and Ruby are you using?
    cordova: 8.1.2 ([email protected])
    cordova-ios: 4.5.4
    cordova-android: 7.1.0
    cocoapods: 1.5.3
    ruby: 2.3.7p456
    node: 8.12

  3. What third party plugins are you using?

com-badrit-base64 0.2.0 "Base64"
com-sarriaroman-photoviewer 1.1.18 "PhotoViewer"
cordova-android-support-gradle-release 1.4.5 "cordova-android-support-gradle-release"
cordova-background-geolocation 2.14.5 "BackgroundGeolocation"
cordova-background-geolocation-lt 2.14.0 "BackgroundGeolocation"
cordova-plugin-actionsheet 2.3.3 "ActionSheet"
cordova-plugin-add-swift-support 1.7.2 "AddSwiftSupport"
cordova-plugin-app-event 1.2.1 "Application Events"
cordova-plugin-app-version 0.1.9 "AppVersion"
cordova-plugin-appcenter-analytics 0.3.0 "App Center Analytics for Cordova"
cordova-plugin-appcenter-shared 0.3.0 "App Center shared code for Cordova"
cordova-plugin-background-fetch 5.4.1 "CDVBackgroundFetch"
cordova-plugin-camera 4.0.1 "Camera"
cordova-plugin-cocoalumberjack 0.0.4 "CocoaLumberjack"
cordova-plugin-compat 1.2.0 "Compat"
cordova-plugin-crosswalk-webview 2.4.0 "Crosswalk WebView Engine"
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-file 6.0.1 "File"
cordova-plugin-file-transfer 1.7.1 "File Transfer"
cordova-plugin-fingerprint-aio 1.3.8 "FingerprintAllInOne"
cordova-plugin-firebase 0.1.25 "Google Firebase Plugin"
cordova-plugin-hockeyapp 5.1.2 "HockeyApp"
cordova-plugin-inappbrowser 2.0.2 "InAppBrowser"
cordova-plugin-nativestorage 2.3.2 "NativeStorage"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-taptic-engine 2.1.0 "Taptic Engine"
cordova-plugin-telerik-imagepicker 2.2.3 "ImagePicker"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova-sqlite-storage 2.5.1 "Cordova sqlite storage plugin"
cordova.plugins.diagnostic 4.0.10 "Diagnostic"
de.appplant.cordova.plugin.local-notification 0.8.5 "LocalNotification"
ionic-plugin-keyboard 2.2.1 "Keyboard"
onesignal-cordova-plugin 2.4.5 "OneSignal Push Notifications"

I've tried a few other "fixes" from other threads such as running pod setup and also running pod update in the platforms/ios directory, but not having any luck.

Thanks!

feat: Capacitor support

The ionic team is pushing everyone to use capacitor instead of cordova. Capacitor has support for cordova plugins and according to the documentation most of the cordova plugins should just work.

But I am struggling with the app center plugins in our project. They are working only partially. On android for example the java code of the plugins gets executed. But when I try to access them in the JavaScript code nothing happens and I see these warnings in the log:

W/Capacitor/Plugin/Console: Native: tried calling AppCenterAnalytics.trackEvent, but the AppCenterAnalytics plugin is not installed.
W/Capacitor/Plugin/Console: Install the AppCenterAnalytics plugin: 'ionic cordova plugin add cordova-plugin-appcenter-analytics'
W/Capacitor/Plugin/Console: Native: tried calling AppCenterPush.setEnabled, but the AppCenterPush plugin is not installed.
W/Capacitor/Plugin/Console: Install the AppCenterPush plugin: 'ionic cordova plugin add cordova-plugin-appcenter-push'

The global AppCenter object is there, but AppCenter.Push and AppCenter.Analytics are undefined.

I know this is only partially related to the cordova plugins, but maybe it's only a small thing that's preventing it to work with capacitor.
If someone with more experience in this topic can take a look and give a hint how to fix it would be awesome.

Automatically turn on Push Notifications entitlement in iOS

Description

It would be great if the plugin could add the aps-environment capability to the project automatically. Currently we need to enable this manually when you create an iOS platform. This is not a problem when we're building app on our dev environment. But right now we cannot build production version of our app through CI/CD which will be able to receive push notifications.

Repro Steps

  1. Build app sources (ionic cordova build ios)
  2. Open project in Xcode
  3. Go to General tab
  4. Check signing settings - Team, Provisioning Profile and Signing Certificate are ok. Push Notifications are on the included capabilities list when you display provisioning profile details
  5. Go to Capabilities tab
  6. Push Notifications are turned of

Details

  1. Which SDK version are you using?
    0.3.4
  2. Which OS version did you experience the issue on?
    iOS 12.2
  3. What version of Cordova, Cordova platforms, Cocoapods, and Ruby are you using?
    cordova-ios: 5.0.0
  4. What device version did you see this error on? Were you using a simulator or a physical device?
    iPhone 5s
  5. What third party plugins are you using?
    cordova-android-firebase-gradle-release 3.0.0 "cordova-android-firebase-gradle-release"
    cordova-android-play-services-gradle-release 3.0.0 "cordova-android-play-services-gradle-release"
    cordova-plugin-actionsheet 2.3.3 "ActionSheet"
    cordova-plugin-app-version 0.1.9 "AppVersion"
    cordova-plugin-appcenter-analytics 0.3.4 "App Center Analytics for Cordova"
    cordova-plugin-appcenter-push 0.3.4 "App Center Push for Cordova"
    cordova-plugin-appcenter-shared 0.3.4 "App Center shared code for Cordova"
    cordova-plugin-background-mode 0.7.2 "BackgroundMode"
    cordova-plugin-browsertab 0.2.0 "cordova-plugin-browsertab"
    cordova-plugin-camera 4.0.3 "Camera"
    cordova-plugin-cocoapod-support 1.6.0 "Cordova CocoaPods Dependency Support"
    cordova-plugin-compat 1.2.0 "Compat"
    cordova-plugin-contacts 3.0.1 "Contacts"
    cordova-plugin-device 2.0.2 "Device"
    cordova-plugin-dialogs 2.0.1 "Notification"
    cordova-plugin-inappbrowser 3.0.0 "InAppBrowser"
    cordova-plugin-ionic-keyboard 2.1.3 "cordova-plugin-ionic-keyboard"
    cordova-plugin-ionic-webview 3.1.2 "cordova-plugin-ionic-webview"
    cordova-plugin-ms-adal 0.10.1 "ADAL for Cordova"
    cordova-plugin-network-information 2.0.1 "Network Information"
    cordova-plugin-splashscreen 5.0.2 "Splashscreen"
    cordova-plugin-statusbar 2.4.2 "StatusBar"
    cordova-plugin-whitelist 1.3.3 "Whitelist"
    cordova-sqlcipher-adapter 0.2.1 "Cordova sqlcipher adapter"
    uk.co.workingedge.phonegap.plugin.launchnavigator 5.0.4 "Launch Navigator"

cordova prepare fails on clean build folder

Description

cordova prepare fails on a clean build folder with these error message:

Failed to install 'cordova-plugin-appcenter-shared': Error: pod: Command failed with exit code 31
    at ChildProcess.whenDone (/Users/jacob/workspace/tc/src-cordova/node_modules/cordova-common/src/superspawn.js:125:23)
    at ChildProcess.emit (events.js:197:13)
    at maybeClose (internal/child_process.js:988:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:265:5)
Failed to install 'cordova-plugin-appcenter-analytics': Error: pod: Command failed with exit code 31
    at ChildProcess.whenDone (/Users/jacob/workspace/tc/src-cordova/node_modules/cordova-common/src/superspawn.js:125:23)
    at ChildProcess.emit (events.js:197:13)
    at maybeClose (internal/child_process.js:988:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:265:5)
Failed to restore plugin "cordova-plugin-appcenter-analytics" from config.xml. You might need to try adding it again. Error: Error: pod: Command failed with exit code 31
Error during processing of action! Attempting to revert...
Failed to install 'cordova-plugin-appcenter-shared': CordovaError: Uh oh!
"/Users/jacob/workspace/tc/src-cordova/platforms/ios/F/Plugins/cordova-plugin-appcenter-shared/AppCenterShared.m" already exists!
    at copyNewFile (/Users/jacob/workspace/tc/src-cordova/platforms/ios/cordova/lib/plugman/pluginHandlers.js:337:45)
    at installHelper (/Users/jacob/workspace/tc/src-cordova/platforms/ios/cordova/lib/plugman/pluginHandlers.js:260:13)
    at install (/Users/jacob/workspace/tc/src-cordova/platforms/ios/cordova/lib/plugman/pluginHandlers.js:35:13)
    at ActionStack.process (/Users/jacob/workspace/tc/src-cordova/node_modules/cordova-common/src/ActionStack.js:56:25)
    at PluginManager.doOperation (/Users/jacob/workspace/tc/src-cordova/node_modules/cordova-common/src/PluginManager.js:114:20)
    at PluginManager.addPlugin (/Users/jacob/workspace/tc/src-cordova/node_modules/cordova-common/src/PluginManager.js:144:17)
    at Api.addPlugin (/Users/jacob/workspace/farlock-tc/src-cordova/platforms/ios/cordova/Api.js:247:10)
    at handleInstall (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:594:10)
    at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:357:28
    at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:854:54)

Repro Steps

Please list the steps used to reproduce your issue.

  1. Start with clean build folder
  2. Run cordova prepare on existing project

To workaround this issue, I have to remove and re-add the appcenter plugins after cordova prepare.

Details

  1. Which SDK version are you using?
    • 0.3.3
  2. Which OS version did you experience the issue on?
    • MacOS
  3. What version of Cordova, Cordova platforms, Cocoapods, and Ruby are you using?
    • Cordova 8.1.2, cordova-ios 5.0.0; cordova-android 8.0.0
  4. What device version did you see this error on? Were you using a simulator or a physical device?
    • N/A
  5. What third party plugins are you using?
code-push 2.0.6 "CodePushAcquisition"
cordova-custom-config 5.1.0 "cordova-custom-config"
cordova-plugin-add-swift-support 1.7.2 "AddSwiftSupport"
cordova-plugin-app-preferences 0.99.4 "AppPreferences"
cordova-plugin-appcenter-analytics 0.3.3 "App Center Analytics for Cordova"
cordova-plugin-appcenter-crashes 0.3.3 "App Center Crashes for Cordova"
cordova-plugin-appcenter-shared 0.3.3 "App Center shared code for Cordova"
cordova-plugin-cocoapod-support 1.6.0 "Cordova CocoaPods Dependency Support"
cordova-plugin-code-push 1.11.17 "CodePush"
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-dialogs 2.0.1 "Notification"
cordova-plugin-file 6.0.1 "File"
cordova-plugin-file-transfer 1.7.1 "File Transfer"
cordova-plugin-firebase-dynamiclinks 1.0.1 "FirebaseDynamicLinksPlugin"
cordova-plugin-geolocation 4.0.1 "Geolocation"
cordova-plugin-inappbrowser 3.1.0-dev "InAppBrowser"
cordova-plugin-nativegeocoder 3.2.1 "NativeGeocoder"
cordova-plugin-network-information 2.0.1 "Network Information"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova-plugin-zip 3.1.0 "cordova-plugin-zip"
cordova-sqlite-evcore-extbuild-free 0.9.10 "Cordova sqlite storage - free enterprise version with Android performance/memory improvements and extra features for PhoneGap Build"
cordova-support-android-plugin 1.0.1 "cordova-support-android-plugin"
cordova-support-google-services 1.2.1 "cordova-support-google-services"

AppCenter requires a higher minimum deployment target

screen shot 2019-01-31 at 3 46 24 am

screen shot 2019-01-31 at 4 17 21 am

my podfile:
screen shot 2019-01-31 at 6 15 45 am

What is the minimum deployment target? This is the only plugin that I get these errors. When I check: cordova plugin list it is there. So I preceded to try to set some analytics:

AppCenter.Analytics.trackEvent('Api request', { Url: url}, eventSuccess, eventError);

Then I get a javascript error that says AppCenter variable cannot be found. I am assuming this is due to minimum deployment target issue? Been working on this for a couple days and cannot get this resolved.

I also tried:
<preference name="deployment-target" value="10.0"

in config.xml

Expose values of install and session IDs to JavaScript

We want to correlate events happening inside mobile app with events happening on server during request handling.

For that we use App Center to gather events from mobile app and export them to Application Insights. We use the same Application Insights resource for export from App Center and for reporting from server, so we could see events from both sources correlated to each other.

In order to implement correlation, we need to pass install ID and session ID to server, for usage as user ID and session ID respectively.

Install ID could be exposed as value of [MSAppCenter installId] and session ID as [MSSessionContext sessionId].

Is it a right way to correlate App Center events with server-generated items in Application Insights? Would you like to see pull request with those values exposed?

Cordova plugin doesnt finish install

Description

the plugin dies on install

Please list the steps used to reproduce your issue.

  1. install shared plugin via cordova plugin add
  2. plugin install dies
Failed to install 'cordova-plugin-appcenter-shared': Error: pod: Command failed with exit code 1
    at ChildProcess.whenDone

Details

  1. Which SDK version are you using?
    latest
  2. Which OS version did you experience the issue on?
    -iOS 11
  3. What version of Cordova, Cordova platforms, Cocoapods, and Ruby are you using?
    Cordova 7.1

AppCenter is not defined in Ionic 3 (TypeScript) project

I followed the discussion in #20 and even downloaded a sample project listed in the thread, but was not able to run this successfully.

This is the code I'm using to access the window object (borrowed from the mentioned closed issue) and the AppCenter object is still undefined.

export class HomePage {
  private webWiew: any = window;
  constructor(public navCtrl: NavController) {
    var success = function (result) {
      console.log("analytics " + (result) ? "enabled" : "disabled");
    }

    var error = function (error) {
      console.error(error);
    }

    this.webWiew.AppCenter.Analytics.isEnabled(success, error);
  }
}

unable to use the push plugin with [email protected]. receive error "Could not find method google() for arguments [] on repository container."

Description

receive build error below when using the push plugin with [email protected] (which is the default for phonegap cli 7.1.0)

FAILURE: Build failed with an exception.

  • Where:
    Script '/cordova-plugin-appcenter-push/workplace-AppCenterPush.gradle' line: 3

  • What went wrong:
    A problem occurred evaluating script.

Could not find method google() for arguments [] on repository container.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    at ChildProcess.whenDone (/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
    at emitTwo (events.js:106:13)
    at ChildProcess.emit (events.js:191:7)
    at maybeClose (internal/child_process.js:877:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)

I simply upgraded to 6.4 so it's not an issue for me anymore but thought i'd report it.

Repro Steps

  1. install phonegap with npm install -g phonegap
  2. phonegap create test
  3. cd test
  4. phonegap plugin add cordova-plugin-appcenter-push
  5. phonegap platform add [email protected]
  6. add your google-services.json file to the project root
  7. add this line to your config.xml
    <resource-file src="google-services.json" target="app/google-services.json" />
  8. remove this line from your config.xml (you'll receive an error otherwise)
    <preference name="android-minSdkVersion" value="14" />
  9. phonegap build android --verbose

Details

  1. Which SDK version are you using?
    • latest
  2. Which OS version did you experience the issue on?
    • N/A
  3. What version of Cordova, Cordova platforms, Cocoapods, and Ruby are you using?
    • Cordova version 7.1.0
  4. What device version did you see this error on? Were you using a simulator or a physical device?
    • N/A
  5. What third party plugins are you using?
    • N/A

README.md is incorrect

In the README.md of the sample app, it reads

to run the app run script 'npm run ios' - but there is no such script

Failed to install 'cordova-plugin-appcenter-analytics': undefined

Description

I'm having issues trying to use AppCenter Analytics (and Crashes) in my Cordova project. I'm following the Get Started guide.

I know the issue is related to not having CocoaPods installed, but I don't see any mention of CocoaPods in the documentation so I'm not sure the best way to install/configure it.

Repro Steps

  1. Clear all generated folders (to start from scratch):
    rm -rf node_modules/ platforms/ plugins/ www/
  2. Install dependencies:
    npm install
  3. Create folder for Cordova:
    mkdir www
  4. Install AppCenter Analytics:
    cordova plugin add cordova-plugin-appcenter-analytics
  5. Prepare app--fails when trying to install above plugin:
cordova prepare ios --verbose
...
Installing "cordova-plugin-appcenter-analytics" for ios
Running command: /Users/me/repos/test-app/platforms/ios/cordova/version
Command finished with error code 0: /Users/me/repos/test-app/platforms/ios/cordova/version
Dependencies detected, iterating through them...
Requesting plugin "[email protected]".
Plugin dependency "cordova-plugin-appcenter-shared" not fetched, retrieving then installing.
Running command: npm install [email protected] --production --no-save
Command finished with error code 0: npm install,[email protected],--production,--no-save
Copying plugin "/Users/me/repos/test-app/node_modules/cordova-plugin-appcenter-shared" => "/Users/me/repos/test-app/plugins/cordova-plugin-appcenter-shared"
Installing "cordova-plugin-appcenter-shared" for ios
Finding scripts for "before_plugin_install" hook from plugin cordova-plugin-appcenter-shared on ios platform only.
No scripts found for hook "before_plugin_install".
Install start for "cordova-plugin-appcenter-shared" on ios.
PlatformApi successfully found for platform ios
Beginning processing of action stack for ios project...
Action stack processing complete.
Adding pods since the plugin contained <framework>(s) with type="podspec"
pods.json: The file at /Users/me/repos/test-app/platforms/ios/pods.json does not exist.
Creating new pods.json in platforms/ios
Wrote to pods.json.
Podfile: The file at /Users/me/repos/test-app/platforms/ios/Podfile does not exist.
Creating new Podfile in platforms/ios
Wrote to Podfile.
Set pods.json for `AppCenter`
Added pod line for `AppCenter`
Wrote to pods.json.
Wrote to Podfile.
Running `pod install` (to install plugins)
Failed to install 'cordova-plugin-appcenter-shared': undefined
Failed to install 'cordova-plugin-appcenter-analytics': undefined
CocoaPods was not found. Please install version 1.0.1 or greater from https://cocoapods.org/

Then when trying to run (cordova run ios) it naturally fails compilation on AppCenter related items.

Details

Here are my files after adding the plugin.

package.json:

{
  "name": "test-app",
  "version": "0.0.1",
  "author": "Test",
  "scripts": {
    "start": "ng serve",
    "build": "ng build",
  },
  "private": true,
  "dependencies": {
    "@angular/common": "^7.1.3",
    "@angular/core": "^7.1.3",
    "@angular/forms": "^7.1.3",
    "@angular/http": "^7.1.3",
    "@angular/platform-browser": "^7.1.3",
    "@angular/platform-browser-dynamic": "^7.1.3",
    "@angular/router": "^7.1.3",
    "@ionic-native/core": "^5.0.0-beta.22",
    "@ionic-native/keyboard": "^5.0.0-beta.22",
    "@ionic-native/splash-screen": "^5.0.0-beta.22",
    "@ionic-native/status-bar": "^5.0.0-beta.22",
    "@ionic-native/touch-id": "^5.0.0-beta.22",
    "@ionic/angular": "^4.0.0-rc.0",
    "cordova-android": "^7.1.4",
    "cordova-ios": "^4.5.5",
    "cordova-plugin-appcenter-analytics": "^0.2.2",
    "cordova-plugin-device": "^2.0.2",
    "cordova-plugin-ionic-keyboard": "^2.1.3",
    "cordova-plugin-ionic-webview": "^2.3.1",
    "cordova-plugin-splashscreen": "^5.0.2",
    "cordova-plugin-statusbar": "^2.4.2",
    "cordova-plugin-touch-id": "^3.4.0",
    "cordova-plugin-vip": "file:./projects/vip",
    "cordova-plugin-whitelist": "^1.3.3",
    "core-js": "^2.6.1",
    "rxjs": "~6.3.3",
    "zone.js": "~0.8.26"
  },
  "devDependencies": {
    "@angular-devkit/architect": "^0.10.7",
    "@angular-devkit/build-angular": "^0.10.7",
    "@angular-devkit/build-ng-packagr": "^0.10.7",
    "@angular-devkit/core": "^7.1.4",
    "@angular-devkit/schematics": "^7.1.4",
    "@angular/cli": "^7.1.3",
    "@angular/compiler": "^7.1.3",
    "@angular/compiler-cli": "^7.1.3",
    "@angular/language-service": "^7.1.3",
    "@ionic/angular-toolkit": "^1.2.2",
    "@types/jasmine": "^2.8.14",
    "@types/jasminewd2": "~2.0.3",
    "@types/node": "^10.12.18",
    "angular-cli-ghpages": "^0.5.3",
    "codelyzer": "~4.5.0",
    "cordova": "^8.1.2",
    "ionic": "^4.5.0",
    "jasmine-core": "~2.99.1",
    "jasmine-spec-reporter": "~4.2.1",
    "karma": "~3.0.0",
    "karma-chrome-launcher": "~2.2.0",
    "karma-coverage-istanbul-reporter": "~2.0.1",
    "karma-jasmine": "~1.1.2",
    "karma-jasmine-html-reporter": "^0.2.2",
    "ng-packagr": "^4.4.5",
    "protractor": "~5.4.0",
    "ts-node": "~7.0.0",
    "tsickle": ">=0.29.0",
    "tslib": "^1.9.0",
    "tslint": "~5.11.0",
    "typescript": "~3.1.6"
  },
  "description": "Test app.",
  "cordova": {
    "plugins": {
      "cordova-plugin-whitelist": {},
      "cordova-plugin-statusbar": {},
      "cordova-plugin-device": {},
      "cordova-plugin-splashscreen": {},
      "cordova-plugin-ionic-webview": {},
      "cordova-plugin-ionic-keyboard": {},
      "cordova-plugin-touch-id": {
        "FACEID_USAGE_DESCRIPTION": " "
      },
      "cordova-plugin-vip": {},
      "cordova-plugin-appcenter-analytics": {}
    },
    "platforms": [
      "android",
      "ios"
    ]
  }
}

config.xml:

<?xml version='1.0' encoding='utf-8'?>
<widget android-versionCode="4" id="org.company.test" ios-CFBundleVersion="4" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
    <name>Test</name>
    <description>Test app.</description>
    <author email="[email protected]" href="http://www.example.com/">Test</author>
    <content src="index.html" />
    <access origin="*" />
    <allow-intent href="http://*/*" />
    <allow-intent href="https://*/*" />
    <allow-intent href="tel:*" />
    <allow-intent href="sms:*" />
    <allow-intent href="mailto:*" />
    <allow-intent href="geo:*" />
    <preference name="ScrollEnabled" value="false" />
    <preference name="android-minSdkVersion" value="19" />
    <preference name="BackupWebStorage" value="none" />
    <preference name="SplashMaintainAspectRatio" value="true" />
    <preference name="FadeSplashScreenDuration" value="300" />
    <preference name="SplashShowOnlyFirstTime" value="false" />
    <preference name="SplashScreen" value="screen" />
    <preference name="SplashScreenDelay" value="3000" />
    <preference name="KeyboardResize" value="false" />
    <platform name="android">
        <allow-intent href="market:*" />
        <icon density="ldpi" src="resources/android/icon/drawable-ldpi-icon.png" />
        <icon density="mdpi" src="resources/android/icon/drawable-mdpi-icon.png" />
        <icon density="hdpi" src="resources/android/icon/drawable-hdpi-icon.png" />
        <icon density="xhdpi" src="resources/android/icon/drawable-xhdpi-icon.png" />
        <icon density="xxhdpi" src="resources/android/icon/drawable-xxhdpi-icon.png" />
        <icon density="xxxhdpi" src="resources/android/icon/drawable-xxxhdpi-icon.png" />
        <splash density="land-ldpi" src="resources/android/splash/drawable-land-ldpi-screen.png" />
        <splash density="land-mdpi" src="resources/android/splash/drawable-land-mdpi-screen.png" />
        <splash density="land-hdpi" src="resources/android/splash/drawable-land-hdpi-screen.png" />
        <splash density="land-xhdpi" src="resources/android/splash/drawable-land-xhdpi-screen.png" />
        <splash density="land-xxhdpi" src="resources/android/splash/drawable-land-xxhdpi-screen.png" />
        <splash density="land-xxxhdpi" src="resources/android/splash/drawable-land-xxxhdpi-screen.png" />
        <splash density="port-ldpi" src="resources/android/splash/drawable-port-ldpi-screen.png" />
        <splash density="port-mdpi" src="resources/android/splash/drawable-port-mdpi-screen.png" />
        <splash density="port-hdpi" src="resources/android/splash/drawable-port-hdpi-screen.png" />
        <splash density="port-xhdpi" src="resources/android/splash/drawable-port-xhdpi-screen.png" />
        <splash density="port-xxhdpi" src="resources/android/splash/drawable-port-xxhdpi-screen.png" />
        <splash density="port-xxxhdpi" src="resources/android/splash/drawable-port-xxxhdpi-screen.png" />
    </platform>
    <platform name="ios">
        <allow-intent href="itms:*" />
        <allow-intent href="itms-apps:*" />
        <icon height="57" src="resources/ios/icon/icon.png" width="57" />
        <icon height="114" src="resources/ios/icon/[email protected]" width="114" />
        <icon height="40" src="resources/ios/icon/icon-40.png" width="40" />
        <icon height="80" src="resources/ios/icon/[email protected]" width="80" />
        <icon height="120" src="resources/ios/icon/[email protected]" width="120" />
        <icon height="50" src="resources/ios/icon/icon-50.png" width="50" />
        <icon height="100" src="resources/ios/icon/[email protected]" width="100" />
        <icon height="60" src="resources/ios/icon/icon-60.png" width="60" />
        <icon height="120" src="resources/ios/icon/[email protected]" width="120" />
        <icon height="180" src="resources/ios/icon/[email protected]" width="180" />
        <icon height="72" src="resources/ios/icon/icon-72.png" width="72" />
        <icon height="144" src="resources/ios/icon/[email protected]" width="144" />
        <icon height="76" src="resources/ios/icon/icon-76.png" width="76" />
        <icon height="152" src="resources/ios/icon/[email protected]" width="152" />
        <icon height="167" src="resources/ios/icon/[email protected]" width="167" />
        <icon height="29" src="resources/ios/icon/icon-small.png" width="29" />
        <icon height="58" src="resources/ios/icon/[email protected]" width="58" />
        <icon height="87" src="resources/ios/icon/[email protected]" width="87" />
        <icon height="1024" src="resources/ios/icon/icon-1024.png" width="1024" />
        <splash height="1136" src="resources/ios/splash/Default-568h@2x~iphone.png" width="640" />
        <splash height="1334" src="resources/ios/splash/Default-667h.png" width="750" />
        <splash height="2208" src="resources/ios/splash/Default-736h.png" width="1242" />
        <splash height="1242" src="resources/ios/splash/Default-Landscape-736h.png" width="2208" />
        <splash height="1536" src="resources/ios/splash/Default-Landscape@2x~ipad.png" width="2048" />
        <splash height="2048" src="resources/ios/splash/Default-Landscape@~ipadpro.png" width="2732" />
        <splash height="768" src="resources/ios/splash/Default-Landscape~ipad.png" width="1024" />
        <splash height="2048" src="resources/ios/splash/Default-Portrait@2x~ipad.png" width="1536" />
        <splash height="2732" src="resources/ios/splash/Default-Portrait@~ipadpro.png" width="2048" />
        <splash height="1024" src="resources/ios/splash/Default-Portrait~ipad.png" width="768" />
        <splash height="960" src="resources/ios/splash/Default@2x~iphone.png" width="640" />
        <splash height="480" src="resources/ios/splash/Default~iphone.png" width="320" />
        <splash height="2732" src="resources/ios/splash/Default@2x~universal~anyany.png" width="2732" />
    </platform>
    <plugin name="cordova-plugin-whitelist" spec="~1.3.3" />
    <plugin name="cordova-plugin-statusbar" spec="~2.4.2" />
    <plugin name="cordova-plugin-device" spec="~2.0.2" />
    <plugin name="cordova-plugin-splashscreen" spec="~5.0.2" />
    <plugin name="cordova-plugin-ionic-webview" spec="^2.0.0" />
    <plugin name="cordova-plugin-ionic-keyboard" spec="^2.0.5" />
    <plugin name="cordova-plugin-touch-id" spec="3.4.0">
        <variable name="FACEID_USAGE_DESCRIPTION" value=" " />
    </plugin>
    <plugin name="cordova-plugin-vip" spec="./projects/vip" />
    <plugin name="cordova-plugin-appcenter-analytics" spec="^0.2.2" />
    <engine name="android" spec="^7.1.4" />
    <engine name="ios" spec="^4.5.5" />
</widget>

Could someone please offer advice on the best approach for CocoaPods? Thanks!

cordova build fails with appcenter-push

Description

Edit: I was able to resolve the initial error by installing 0.2.2 instead of 0.3.0, however I still cannot build:

Error: /Users/xxxxxxx/workspace/persona/cordova/platforms/android/gradlew: Command failed with exit code 1 Error output:
Failed to notify ProjectEvaluationListener.afterEvaluate(), but primary configuration failure takes precedence.
java.lang.IllegalStateException: buildToolsVersion is not specified.
	at com.google.common.base.Preconditions.checkState(Preconditions.java:173)
	at com.android.build.gradle.BasePlugin.createAndroidTasks(BasePlugin.java:645)
	at com.android.build.gradle.BasePlugin$10.call(BasePlugin.java:608)
	at com.android.build.gradle.BasePlugin$10.call(BasePlugin.java:605)
	at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:156)
	at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:120)
	at com.android.build.gradle.BasePlugin.lambda$createTasks$1(BasePlugin.java:603)
	at org.gradle.internal.event.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDispatch.java:93)
	at org.gradle.internal.event.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDispatch.java:82)
	at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:44)
	at org.gradle.internal.event.BroadcastDispatch.dispatch(BroadcastDispatch.java:79)
	at org.gradle.internal.event.BroadcastDispatch.dispatch(BroadcastDispatch.java:30)
	at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93)
	at com.sun.proxy.$Proxy16.afterEvaluate(Unknown Source)
	at org.gradle.configuration.project.LifecycleProjectEvaluator.notifyAfterEvaluate(LifecycleProjectEvaluator.java:82)
	at org.gradle.configuration.project.LifecycleProjectEvaluator.doConfigure(LifecycleProjectEvaluator.java:76)
	at org.gradle.configuration.project.LifecycleProjectEvaluator.access$000(LifecycleProjectEvaluator.java:33)
	at org.gradle.configuration.project.LifecycleProjectEvaluator$1.execute(LifecycleProjectEvaluator.java:53)
	at org.gradle.configuration.project.LifecycleProjectEvaluator$1.execute(LifecycleProjectEvaluator.java:50)
	at org.gradle.internal.Transformers$4.transform(Transformers.java:169)
	at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106)
	at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:61)
	at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:50)
	at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:628)
	at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:129)
	at org.gradle.execution.TaskPathProjectEvaluator.configure(TaskPathProjectEvaluator.java:35)
	at org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(TaskPathProjectEvaluator.java:60)
	at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:38)
	at org.gradle.initialization.DefaultGradleLauncher$1.execute(DefaultGradleLauncher.java:161)
	at org.gradle.initialization.DefaultGradleLauncher$1.execute(DefaultGradleLauncher.java:158)
	at org.gradle.internal.Transformers$4.transform(Transformers.java:169)
	at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:106)
	at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:56)
	at org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:158)
	at org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:119)
	at org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:102)
	at org.gradle.launcher.exec.GradleBuildController.run(GradleBuildController.java:71)
	at org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)
	at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
	at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:41)
	at org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:26)
	at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:75)
	at org.gradle.tooling.internal.provider.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:49)
	at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:44)
	at org.gradle.tooling.internal.provider.ServicesSetupBuildActionExecuter.execute(ServicesSetupBuildActionExecuter.java:29)
	at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:67)
	at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
	at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:47)
	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
	at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26)
	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
	at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34)
	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
	at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74)
	at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72)
	at org.gradle.util.Swapper.swap(Swapper.java:38)
	at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72)
	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
	at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55)
	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
	at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:60)
	at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
	at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:72)
	at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
	at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
	at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50)
	at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:297)
	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)
	at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)

FAILURE: Build failed with an exception.

* Where:
Script '/Users/xxxxxxx/workspace/persona/cordova/platforms/android/cordova-plugin-appcenter-push/testpush-AppCenterPush.gradle' line: 3

* What went wrong:
A problem occurred evaluating script.
> Could not find method google() for arguments [] on repository container.

Repro Steps

  1. cordova plugin add cordova-plugin-appcenter-push
  2. cordova build android

Details

  1. Which SDK version are you using?
    • latest
  2. Which OS version did you experience the issue on?
    • osx 10.13.2
  3. What version of Cordova, Cordova platforms, Cocoapods, and Ruby are you using?
    • cordova 7.1.0, cocoapod 1.5.0, Ruby 2.3.3, cordova platforms: android 6.3.0 ios 4.5.4
  4. What device version did you see this error on? Were you using a simulator or a physical device?
    • error is when building
  5. What third party plugins are you using?
    • JXCoreMobile

Feature Request - expose a method to display the binary version of the app

Add the ability to obtain the current build version even when no update is available.
This can perhaps be implemented by modifying getCurrentPackage to return an actual object containing the appVersion instead of null. Another option is to expose it through any new API.

https://docs.microsoft.com/en-us/appcenter/distribution/codepush/cordova#codepushgetcurrentpackage

The purpose of this request is to allow users to always view the version number of the currently installed app. This can be easily implemented by combining the app binary version along with the update label (managed by codepush).

Error with phonegap build while compiling for ios

Description

Hi, trying to compile on phone gap build after upgrading to CLI 9.0.0 and ios cordova 5.0.1, the compilation crash for ios. But works for Android.

Repro Steps

Please list the steps used to reproduce your issue.

  1. Connect to phonegap build
  2. Try to compile for ios

Details

"plugman-151 install --platform ios --project /project --plugin cordova-plugin-appcenter-push --nohooks=.": Fetching plugin "cordova-plugin-appcenter-push" via npm
Installing "cordova-plugin-appcenter-push" at "0.4.0" for ios
Fetching plugin "[email protected]" via npm
Installing "cordova-plugin-appcenter-shared" at "0.4.0" for ios
"framework" tag with type "podspec" is deprecated and will be removed. Please use the "podspec" tag.
Running command: pod install --verbose
Failed to install 'cordova-plugin-appcenter-shared': Error: pod: Command failed with exit code 1
    at ChildProcess.whenDone (/private/project/cordova/node_modules/cordova-common/src/superspawn.js:135:23)
    at ChildProcess.emit (events.js:182:13)
    at maybeClose (internal/child_process.js:962:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
Failed to install 'cordova-plugin-appcenter-push': Error: pod: Command failed with exit code 1
    at ChildProcess.whenDone (/private/project/cordova/node_modules/cordova-common/src/superspawn.js:135:23)
    at ChildProcess.emit (events.js:182:13)
    at maybeClose (internal/child_process.js:962:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)
pod: Command failed with exit code 1
  1. Which SDK version are you using?
    • 0.4.0 (shared)
  2. Which OS version did you experience the issue on?
    • iOS
  3. What version of Cordova, Cordova platforms, Cocoapods, and Ruby are you using?
    • Cordova 9.0.0 - cordova ios 5.0.1
  4. What device version did you see this error on? Were you using a simulator or a physical device?
    • Iphone 8
  5. What third party plugins are you using?
com.telerik.plugins.nativepagetransitions 0.6.5 "Native Page Transitions"
cordova-background-geolocation 3.2.1 "BackgroundGeolocation"
cordova-plugin-actionsheet 2.3.3 "ActionSheet"
cordova-plugin-appcenter-analytics 0.4.0 "App Center Analytics for Cordova"
cordova-plugin-appcenter-crashes 0.4.0 "App Center Crashes for Cordova"
cordova-plugin-appcenter-push 0.4.0 "App Center Push for Cordova"
cordova-plugin-appcenter-shared 0.4.0 "App Center shared code for Cordova"
cordova-plugin-background-fetch 5.6.0 "CDVBackgroundFetch"
cordova-plugin-badge 0.8.8 "Badge"
cordova-plugin-cocoalumberjack 0.0.4 "CocoaLumberjack"
cordova-plugin-device 2.0.3 "Device"
cordova-plugin-dialogs 2.0.2 "Notification"
cordova-plugin-file 6.0.2 "File"
cordova-plugin-file-transfer 1.7.1 "File Transfer"
cordova-plugin-globalization 1.11.0 "Globalization"
cordova-plugin-googlemaps 2.6.2 "cordova-plugin-googlemaps"
cordova-plugin-ionic-keyboard 2.2.0 "cordova-plugin-ionic-keyboard"
cordova-plugin-ios-disableshaketoedit 1.0.0 "iOS Disable Shake to Edit"
cordova-plugin-local-notification 0.9.0-beta.3 "LocalNotification"
cordova-plugin-splashscreen 5.0.3 "Splashscreen"
cordova-plugin-statusbar 2.4.3 "StatusBar"
cordova-plugin-whitelist 1.3.4 "Whitelist"
cordova-plugin-zip 3.1.0 "cordova-plugin-zip"
uk.co.workingedge.phonegap.plugin.launchnavigator 5.0.4 "Launch Navigator"

The event is not triggered when you click on the notification in background mode.

Description

According to the: https://docs.microsoft.com/en-us/appcenter/sdk/push/cordova-android
If the push is received in background, the event is NOT triggered at receive time. The event is triggered when you click on the notification, but it isn't. It works when app is off or is in foreground mode. In background notification comes but after click the event is not triggered.

I use Ionic 4 with this plugin: https://ionicframework.com/docs/native/app-center-push

Repro Steps

Please list the steps used to reproduce your issue.

  1. Add listener for "notificationReceived" event
  2. Go to background mode
  3. Send notification
  4. Click on notification
  5. App is opened but event is not triggered

Details

  1. Which SDK version are you using?
    0.3.4
  2. Which OS version did you experience the issue on?
    Android 8, Android 9
  3. What version of Cordova, Cordova platforms, Cocoapods, and Ruby are you using?
    Cordova version 8.0.0
  4. What device version did you see this error on? Were you using a simulator or a physical device?
    Nokia 7Plus, Huawei P10 Lite
  5. What third party plugins are you using?
    cordova-android-firebase-gradle-release 3.0.0 "cordova-android-firebase-gradle-release"
    cordova-android-play-services-gradle-release 3.0.0 "cordova-android-play-services-gradle-release"
    cordova-plugin-actionsheet 2.3.3 "ActionSheet"
    cordova-plugin-app-version 0.1.9 "AppVersion"
    cordova-plugin-appcenter-analytics 0.3.4 "App Center Analytics for Cordova"
    cordova-plugin-appcenter-push 0.3.4 "App Center Push for Cordova"
    cordova-plugin-appcenter-shared 0.3.4 "App Center shared code for Cordova"
    cordova-plugin-background-mode 0.7.2 "BackgroundMode"
    cordova-plugin-browsertab 0.2.0 "cordova-plugin-browsertab"
    cordova-plugin-camera 4.0.3 "Camera"
    cordova-plugin-cocoapod-support 1.6.0 "Cordova CocoaPods Dependency Support"
    cordova-plugin-compat 1.2.0 "Compat"
    cordova-plugin-contacts 3.0.1 "Contacts"
    cordova-plugin-device 2.0.2 "Device"
    cordova-plugin-dialogs 2.0.1 "Notification"
    cordova-plugin-inappbrowser 3.0.0 "InAppBrowser"
    cordova-plugin-ionic-keyboard 2.1.3 "cordova-plugin-ionic-keyboard"
    cordova-plugin-ionic-webview 3.1.2 "cordova-plugin-ionic-webview"
    cordova-plugin-ms-adal 0.10.1 "ADAL for Cordova"
    cordova-plugin-network-information 2.0.1 "Network Information"
    cordova-plugin-splashscreen 5.0.2 "Splashscreen"
    cordova-plugin-statusbar 2.4.2 "StatusBar"
    cordova-plugin-whitelist 1.3.3 "Whitelist"
    cordova-sqlcipher-adapter 0.2.1 "Cordova sqlcipher adapter"
    uk.co.workingedge.phonegap.plugin.launchnavigator 5.0.4 "Launch Navigator"

framework not found Pods_AppName

Trying to archive my app. Totally clean install of src-cordova to avoid any legacy issues.

ld: framework not found Pods_AppName
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Details

My PodFile

# DO NOT MODIFY -- auto-generated by Apache Cordova
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
use_frameworks!
target 'AppName' do
	project 'AppName.xcodeproj'
	pod 'AppCenter', '~> 2.2.0'
	pod 'AppCenter/Analytics', '~> 2.2.0'
	pod 'AppCenter/Crashes', '~> 2.2.0'
end
  1. Which SDK version are you using?
    • 0.3.6
  2. Which OS version did you experience the issue on?
    • Xcode
  3. What version of Cordova, Cordova platforms, Cocoapods, and Ruby are you using?
    • "cordova-ios": "^5.0.1"
  4. What device version did you see this error on? Were you using a simulator or a physical device?
    • Xcode
  5. What third party plugins are you using?
code-push 2.0.7 "CodePushAcquisition"
cordova-plugin-app-version 0.1.9 "AppVersion"
cordova-plugin-appcenter-analytics 0.3.6 "App Center Analytics for Cordova"
cordova-plugin-appcenter-crashes 0.3.6 "App Center Crashes for Cordova"
cordova-plugin-appcenter-shared 0.3.6 "App Center shared code for Cordova"
cordova-plugin-camera 4.1.0 "Camera"
cordova-plugin-code-push 1.11.20 "CodePush"
cordova-plugin-compat 1.2.0 "Compat"
cordova-plugin-customurlscheme 4.4.0 "Custom URL scheme"
cordova-plugin-device 2.0.3 "Device"
cordova-plugin-dialogs 2.0.2 "Notification"
cordova-plugin-file 4.3.3 "File"
cordova-plugin-file-transfer 1.6.3 "File Transfer"
cordova-plugin-geolocation 4.0.2 "Geolocation"
cordova-plugin-inappbrowser 3.1.0 "InAppBrowser"
cordova-plugin-keychain-touch-id 3.3.0 "TouchID and Keychain"
cordova-plugin-network-information 2.0.2 "Network Information"
cordova-plugin-purchase 8.1.1 "Purchase"
cordova-plugin-splashscreen 5.0.3 "Splashscreen"
cordova-plugin-statusbar 2.4.3 "StatusBar"
cordova-plugin-whitelist 1.3.4 "Whitelist"
cordova-plugin-zip 3.1.0 "cordova-plugin-zip"

It looks to me like the Pods_***.framework isn't installed:

ss

Error installing Anaytics/Crashes from cordova-plugin-appcenter-shared

:CICD-Poc $ cordova platform add ios
Using cordova-fetch for cordova-ios@~4.5.4
Adding ios project...
Creating Cordova project for the iOS platform:
	Path: platforms/ios
	Package: com.drivetime.poc
	Name: CICD-Poc
iOS project created with [email protected]
Installing "cordova-plugin-appcenter-analytics" for ios
Installing "cordova-plugin-appcenter-shared" for ios
Failed to install 'cordova-plugin-appcenter-analytics': Error: pod: Command failed with exit code 1
    at ChildProcess.whenDone (/CICD-Poc/platforms/ios/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
    at ChildProcess.emit (events.js:159:13)
    at maybeClose (internal/child_process.js:943:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)
(node:9955) UnhandledPromiseRejectionWarning: Error: pod: Command failed with exit code 1
    at ChildProcess.whenDone (/CICD-Poc/platforms/ios/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
    at ChildProcess.emit (events.js:159:13)
    at maybeClose (internal/child_process.js:943:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)
(node:9955) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:9955) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

I tried removing the ios platform and re adding it but error continues to happen.

ld: library not found for -lPods when running in XCode using Ionic

Description

I installed the plugins per the installation instructions, did ionic cordova prepare ios and run in XCode I get a build error - ld: library not found for -lPods

Repro Steps

Please list the steps used to reproduce your issue.

  1. Create blank Ionic app.
  2. Do cordova platform add [email protected]
  3. Follow steps at https://docs.microsoft.com/en-us/appcenter/sdk/getting-started/cordova

Details

  1. Which SDK version are you using?
  2. Which OS version did you experience the issue on?
    • n/a
  3. What version of Cordova, Cordova platforms, Cocoapods, and Ruby are you using?
    • Cordova 8.1.2, Cocoapods 1.7.5, Ruby 2.3.7p45

cordova app: how to get install id in order to send push notifications

Description

This concerns sending push notifications to specific devices. Cordova app, c# backend.
Apprently the AppCenter sdk allows to do so if one inserts the install id on the request .
The id is obtained in the app using (cordova) AppCenter.getInstallId(success, error);

But the backend does not know about this as there seem to exist no way to query the device or install id from the backend.

Question: can one send push notifications from a backend to a specific device by only using the AppCenter capabilities or must the backend handle the relationship between the AppCenter installId/User Id and the business user of the app (the owner of the device where the app is installed).

Question, can the AppCenter persistence or database where the installIds are persisted/saved be extended to hold a business user id. For example: AppCenter.setUserId("your-user-id");?

Then a reuest from the backend would request a push notification to that user? And AppCenter would then send it to correct device?

Application crash on start with cordova-plugin-appcenter-push with ionic 3

When I add plugin cordova-plugin-appcenter-push to my Ionic 3 application I am unable to run application, everytime on real device or emulator it crashes on the start with message "App {{appName}} has stopped. Restart the application". When I uninstall this appcenter-push plugin my Ionic app works perfect.

This is my
ionic info

@ionic/cli-utils  : 1.19.1
ionic (Ionic CLI) : 3.19.1
cordova (Cordova CLI) : 8.0.0

@ionic/app-scripts : 3.1.2
Cordova Platforms  : android 6.3.0 browser 5.0.3
Ionic Framework    : ionic-angular 3.9.2

Node : v6.10.3
npm  : 3.10.10
OS   : Windows 10

and this is my plugin list
I tried to update other appcenter packages (cordova-plugin-appcenter-shared, cordova-plugin-appcenter-analytics), but without success. I use all three plugins (push, analytics and shared) on version 0.1.3

iOS Analytics not showing up in status page

Description

The analytics plugin works as intended on Android, but does not show any users on iOS. The plugin install correctly on iOS (after using the nightly build of cordova-ios that fixes the hardcoded ios 8 versioning on the podfile). The app secret is correctly specified. I get a successful console log from the plugin, but nothing ever shows up online.

Repro Steps

  1. Install analytics plugin for cordova ios
  2. Check app center portal for analytics info

Details

Only debug info from the plugin is:
2019-01-29 12:02:30.193482-0500 xxxxxxx[569:280793] [CDVTimer][appcentershared] 0.517011ms
2019-01-29 12:02:30.236199-0500 xxxxxxx[569:280793] [CDVTimer][appcenteranalytics] 42.553902ms
2019-01-29 12:02:30.298250-0500 xxxxxxx[569:280793] [AppCenterCrashes] WARNING: -[MSCrashes configureCrashReporterWithUncaughtExceptionHandlerEnabled:]/590 Detecting crashes is NOT enabled due to running the app with a debugger attached.
2019-01-29 12:02:30.329605-0500 xxxxxxx[569:280793] [CDVTimer][appcentercrashes] 93.222976ms

However, I do get a:
d94ee935 | STARTSERVICE
In log flow for iOS so I know it is syncing correctly with my app secret.

  1. Which SDK version are you using?
    0.3.0
  2. Which OS version did you experience the issue on?
    iOS 11
  3. What version of Cordova, Cordova platforms, Cocoapods, and Ruby are you using?
    • e.g. Cordova version 7.1.0, Cordova iOS 4.5.x branch nightly
  4. What device version did you see this error on? Were you using a simulator or a physical device?
    iPhone 6s and X
  5. What third party plugins are you using?
    com.cesidiodibenedetto.filechooser 1.0.4 "FileChooser"
    com.incentfit.shealth 1.3.0 "Samsung SHealth"
    com.lampa.startapp 6.1.6 "startApp"
    com.phonegap.plugins.nativesettingsopener 1.0.1 "Native settings"
    cordova-android-support-gradle-release 2.0.1 "cordova-android-support-gradle-release"
    cordova-background-geolocation-lt 2.14.2 "BackgroundGeolocation"
    cordova-plugin-appcenter-analytics 0.3.0 "App Center Analytics for Cordova"
    cordova-plugin-appcenter-crashes 0.3.0 "App Center Crashes for Cordova"
    cordova-plugin-appcenter-shared 0.3.0 "App Center shared code for Cordova"
    cordova-plugin-apprate 1.4.0 "AppRate"
    cordova-plugin-background-fetch 5.4.1 "CDVBackgroundFetch"
    cordova-plugin-camera 4.0.3 "Camera"
    cordova-plugin-cocoalumberjack 0.0.4 "CocoaLumberjack"
    cordova-plugin-cocoapod-support 1.6.0 "Cordova CocoaPods Dependency Support"
    cordova-plugin-customurlscheme 4.3.0 "Custom URL scheme"
    cordova-plugin-device 2.0.2 "Device"
    cordova-plugin-device-name 1.3.4 "Device-Name"
    cordova-plugin-dialogs 2.0.1 "Notification"
    cordova-plugin-file 6.0.1 "File"
    cordova-plugin-file-transfer 1.7.1 "File Transfer"
    cordova-plugin-geolocation 4.0.1 "Geolocation"
    cordova-plugin-globalization 1.11.0 "Globalization"
    cordova-plugin-googleplus 5.2.1 "Google SignIn"
    cordova-plugin-health 1.1.0 "Cordova Health"
    cordova-plugin-inappbrowser 3.1.0-dev "InAppBrowser"
    cordova-plugin-ionic 5.2.8 "cordova-plugin-ionic"
    cordova-plugin-ionic-webview 2.3.1 "cordova-plugin-ionic-webview"
    cordova-plugin-nativestorage 2.3.2 "NativeStorage"
    cordova-plugin-network-information 2.0.1 "Network Information"
    cordova-plugin-request-location-accuracy 2.2.3 "Request Location Accuracy"
    cordova-plugin-splashscreen 5.0.3-dev "Splashscreen"
    cordova-plugin-statusbar 2.4.1 "StatusBar"
    cordova-plugin-whitelist 1.3.3 "Whitelist"
    cordova-support-google-services 1.1.0 "cordova-support-google-services"
    cordova.plugins.diagnostic 4.0.10 "Diagnostic"
    ionic-plugin-keyboard 2.2.1 "Keyboard"
    phonegap-plugin-barcodescanner 8.0.0 "BarcodeScanner"
    phonegap-plugin-multidex 1.0.0 "Multidex"
    phonegap-plugin-push 2.2.3 "PushPlugin"

Appcenter Android HttpException 503 | ReasonCode: TooManyMessagesInFlight

Description

I tried to run AppCenter push notifications to my Android device. Something went wrong when started the app.

this.appCenterPush.setEnabled(true) is runned succesfully. After runnen setEnabled the following error shows up:

W/AppCenter: Try #1 failed and will be retried in 5705 ms com.microsoft.appcenter.http.HttpException: 503 - CorrelationId: d7df6123-4ce7-46f5-9385-c8a5153cd4e7 ReasonCode: TooManyMessagesInflight at com.microsoft.appcenter.http.DefaultHttpClientCallTask.doHttpCall(DefaultHttpClientCallTask.java:314) at com.microsoft.appcenter.http.DefaultHttpClientCallTask.doInBackground(DefaultHttpClientCallTask.java:328) at com.microsoft.appcenter.http.DefaultHttpClientCallTask.doInBackground(DefaultHttpClientCallTask.java:47) at android.os.AsyncTask$2.call(AsyncTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:784)

Repro Steps

Normal installation of cordova plugin + the installation of FCM. I can send notifications from Firebase to my device.

Details

  1. Which SDK version are you using?
    API 28
  2. Which OS version did you experience the issue on?
    Android 9
  3. What version of Cordova, Cordova platforms, Cocoapods, and Ruby are you using?
    8.1.2 (With Ionic)
  4. What device version did you see this error on? Were you using a simulator or a physical device?
    HUAWEI POT-LX1
  5. What third party plugins are you using?

cordova-fabric-plugin 1.1.14-dev "cordova-fabric-plugin"
cordova-plugin-advanced-http 2.0.9 "Advanced HTTP plugin"
cordova-plugin-appcenter-analytics 0.3.6 "App Center Analytics for Cordova"
cordova-plugin-appcenter-crashes 0.3.6 "App Center Crashes for Cordova"
cordova-plugin-appcenter-push 0.3.6 "App Center Push for Cordova"
cordova-plugin-appcenter-shared 0.3.6 "App Center shared code for Cordova"
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-document-viewer 0.9.10 "SitewaertsDocumentViewer"
cordova-plugin-file 6.0.1 "File"
cordova-plugin-file-opener2 2.2.0 "File Opener2"
cordova-plugin-file-transfer 1.7.1 "File Transfer"
cordova-plugin-ionic-keyboard 2.1.3 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 4.0.1 "cordova-plugin-ionic-webview"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"

Analytics doesn't show up in the AppCenter on iOS

Description

I implemented the analytics sdk for my cordova application on iOS and Android. It works fine on Android but on iOS I do not have any metrics being shown in the appcenter analytics pane.

Repro Steps

Please list the steps used to reproduce your issue.

  1. Install SDK and set APP_SECRET
  2. Run on iOS
  3. Test the SDK

window.AppCenter.Analytics.isEnabled(() => showDebugDialog('is enabled'), (err: any) => showDebugDialog('not enabled ' + err));
window.AppCenter.Analytics.trackEvent('Object opened', null, () => showDebugDialog('success'), (err: any) => showDebugDialog(err));

(both shows success)

  1. Go to appcenter diagnostic pane => nothing shows up.

Details

  1. Which SDK version are you using?
    • 0.3.0
  2. Which OS version did you experience the issue on?
    • iOS 12.1.2
  3. What version of Cordova, Cordova platforms, Cocoapods, and Ruby are you using?
    • Cordova 6.5.0
  4. What device version did you see this error on? Were you using a simulator or a physical device?
    • iPhone 6s Plus / iPhone 8 Plus
  5. What third party plugins are you using?

Android CenterSharedPlugin.java:40: error: diamond operator is not supported in -source 1.6

Description

Looks like Cordova has Java 1.6 by default so diamond operator is not supported ,I can perhaps modify gradle to use Java 1.8 but not sure how this will affect other plugins, better would be to fix the issue in this plugin

CenterSharedPlugin.java:40: error: diamond operator is not supported in -source 1.6

final DefaultAppCenterFuture<Void> future = new DefaultAppCenterFuture<>();

Repro Steps

Please list the steps used to reproduce your issue.

  1. Install plugin using cordova plugin add
  2. do cordova run android

Details

  1. Which SDK version are you using?
    • "cordova-plugin-appsflyer-sdk": "^4.4.18",
  2. Which OS version did you experience the issue on?
    • Android latest
  3. What version of Cordova, Cordova platforms, Cocoapods, and Ruby are you using?
    • Cordova version 7.1.0
    • cordova-android 6.4.0
  4. What device version did you see this error on? Were you using a simulator or a physical device?
    • Error is in bash/terminal
  5. What third party plugins are you using?
code-push 2.0.6 "CodePushAcquisition"
com.bez4pieci.cookies 0.0.1 "Cookies"
com.checkroom.plugin.crashlytics 0.4.0 "CrashlyticsPlugin"
cordova-play-services-version-adapter 1.0.2 "Cordova/Ionic Google Play Services Versions Incompatibility Adapter"
cordova-plugin-appcenter-analytics 0.3.3 "App Center Analytics for Cordova"
cordova-plugin-appcenter-shared 0.3.3 "App Center shared code for Cordova"
cordova-plugin-apprate 1.3.0 "AppRate"
cordova-plugin-appsflyer-sdk 4.4.15 "AppsFlyer"
cordova-plugin-buildinfo 1.1.0 "BuildInfo"
cordova-plugin-cache-clear 1.3.7 "Cordova Cache Clear"
cordova-plugin-camera 2.4.1 "Camera"
cordova-plugin-code-push 1.11.18 "CodePush"
cordova-plugin-device 1.1.7 "Device"
cordova-plugin-device-orientation 1.0.7 "Device Orientation"
cordova-plugin-dialogs 1.3.4 "Notification"
cordova-plugin-facebook4 3.2.0 "Facebook Connect"
cordova-plugin-file 5.0.0 "File"
cordova-plugin-file-transfer 1.7.1 "File Transfer"
cordova-plugin-globalization 1.11.0 "Globalization"
cordova-plugin-googleplus 5.3.2 "Google SignIn"
cordova-plugin-inappbrowser 2.0.2 "InAppBrowser"
cordova-plugin-ionic-keyboard 2.0.5 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 2.4.1 "cordova-plugin-ionic-webview"
cordova-plugin-network-information 2.0.1 "Network Information"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-taptic-engine 2.1.0 "Taptic Engine"
cordova-plugin-velda-devicefeedback 0.0.2 "DeviceFeedback"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova-plugin-x-socialsharing 5.4.4 "SocialSharing"
cordova-plugin-zip 3.1.0 "cordova-plugin-zip"
cordova-universal-links-plugin 1.2.1 "Universal Links Plugin"
es6-promise-plugin 4.2.2 "Promise"
phonegap-plugin-mobile-accessibility 1.0.5-dev "Mobile Accessibility"
phonegap-plugin-push 2.2.3 "PushPlugin"

How to detect foreground/background mode after receiving the push notification on iOS

Description

Hi,

How to detect foreground/background mode after receiving the push notification on iOS? According to the documentation for the Android we can check if message property is empty. How to reach the same on iOS?

if (message === null || message === undefined) {
   // Android messages received in the background don't include a message. On Android, that fact can be used to
   // check if the message was received in the background or foreground. For iOS the message is always present.
   title = 'Android background';
   message = '<empty>';
}

I use Ionic 4 with this plugin: https://ionicframework.com/docs/native/app-center-push

Repro Steps

Please list the steps used to reproduce your issue.

  1. Send the notification
  2. Click on a notification

Details

  1. Which SDK version are you using?
    0.3.4
  2. Which OS version did you experience the issue on?
    Android 8, Android 9
  3. What version of Cordova, Cordova platforms, Cocoapods, and Ruby are you using?
    Cordova version 8.0.0
  4. What device version did you see this error on? Were you using a simulator or a physical device?
    Nokia 7Plus, Huawei P10 Lite
  5. What third party plugins are you using?
    cordova-android-firebase-gradle-release 3.0.0 "cordova-android-firebase-gradle-release"
    cordova-android-play-services-gradle-release 3.0.0 "cordova-android-play-services-gradle-release"
    cordova-plugin-actionsheet 2.3.3 "ActionSheet"
    cordova-plugin-app-version 0.1.9 "AppVersion"
    cordova-plugin-appcenter-analytics 0.3.4 "App Center Analytics for Cordova"
    cordova-plugin-appcenter-push 0.3.4 "App Center Push for Cordova"
    cordova-plugin-appcenter-shared 0.3.4 "App Center shared code for Cordova"
    cordova-plugin-background-mode 0.7.2 "BackgroundMode"
    cordova-plugin-browsertab 0.2.0 "cordova-plugin-browsertab"
    cordova-plugin-camera 4.0.3 "Camera"
    cordova-plugin-cocoapod-support 1.6.0 "Cordova CocoaPods Dependency Support"
    cordova-plugin-compat 1.2.0 "Compat"
    cordova-plugin-contacts 3.0.1 "Contacts"
    cordova-plugin-device 2.0.2 "Device"
    cordova-plugin-dialogs 2.0.1 "Notification"
    cordova-plugin-inappbrowser 3.0.0 "InAppBrowser"
    cordova-plugin-ionic-keyboard 2.1.3 "cordova-plugin-ionic-keyboard"
    cordova-plugin-ionic-webview 3.1.2 "cordova-plugin-ionic-webview"
    cordova-plugin-ms-adal 0.10.1 "ADAL for Cordova"
    cordova-plugin-network-information 2.0.1 "Network Information"
    cordova-plugin-splashscreen 5.0.2 "Splashscreen"
    cordova-plugin-statusbar 2.4.2 "StatusBar"
    cordova-plugin-whitelist 1.3.3 "Whitelist"
    cordova-sqlcipher-adapter 0.2.1 "Cordova sqlcipher adapter"
    uk.co.workingedge.phonegap.plugin.launchnavigator 5.0.4 "Launch Navigator"

Error installing ...

Error message is:
Failed to install 'cordova-plugin-appcenter-push': undefined
Error: /bin/sh: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby: bad interpreter: No such file or directory

Push notification didn't show on device with Android

Description

Some time ago we updated cordova-plugin-appcenter-push from version 0.3.4 to 0.3.5. After that we noticed that we've had problems with receiving push notifications on devices with Android system. On devices with iOS everything worked as expected. When we replaced plugin with previous version everything worked perfect.

Repro Steps

In our case to reproduce this bug we have to:

  1. Install (or upgrade to latest version which supports push notification) our application
  2. Open application first time - this action will register unique installation identifier on our backend (appCenter.getInstallId())
  3. Create some push notification on our backend or directly in AppCenter (it doesn't matter that we send this notification to all registered devices or defined devices list)
  4. Push notification doesn't occur on device
  5. Open/close our app few times
  6. Create push notification once again
  7. Push notification occurs on device

Details

  1. Which SDK version are you using?
    0.3.5
  2. Which OS version did you experience the issue on?
    Android 8, Android 9
  3. What version of Cordova, Cordova platforms, Cocoapods, and Ruby are you using?
    Cordova version 8.0.0
  4. What device version did you see this error on? Were you using a simulator or a physical device?
    Nokia 7Plus, Huawei P10 Lite
  5. What third party plugins are you using?
    cordova-android-firebase-gradle-release 3.0.0 "cordova-android-firebase-gradle-release"
    cordova-android-play-services-gradle-release 3.0.0 "cordova-android-play-services-gradle-release"
    cordova-plugin-actionsheet 2.3.3 "ActionSheet"
    cordova-plugin-app-version 0.1.9 "AppVersion"
    cordova-plugin-appcenter-analytics 0.3.5 "App Center Analytics for Cordova"
    cordova-plugin-appcenter-push 0.3.5 "App Center Push for Cordova"
    cordova-plugin-appcenter-shared 0.3.5 "App Center shared code for Cordova"
    cordova-plugin-background-mode 0.7.2 "BackgroundMode"
    cordova-plugin-browsertab 0.2.0 "cordova-plugin-browsertab"
    cordova-plugin-camera 4.0.3 "Camera"
    cordova-plugin-cocoapod-support 1.6.0 "Cordova CocoaPods Dependency Support"
    cordova-plugin-compat 1.2.0 "Compat"
    cordova-plugin-contacts 3.0.1 "Contacts"
    cordova-plugin-device 2.0.2 "Device"
    cordova-plugin-dialogs 2.0.1 "Notification"
    cordova-plugin-inappbrowser 3.0.0 "InAppBrowser"
    cordova-plugin-ionic-keyboard 2.1.3 "cordova-plugin-ionic-keyboard"
    cordova-plugin-ionic-webview 3.1.2 "cordova-plugin-ionic-webview"
    cordova-plugin-ms-adal 0.10.1 "ADAL for Cordova"
    cordova-plugin-network-information 2.0.1 "Network Information"
    cordova-plugin-splashscreen 5.0.2 "Splashscreen"
    cordova-plugin-statusbar 2.4.2 "StatusBar"
    cordova-plugin-whitelist 1.3.3 "Whitelist"
    cordova-sqlcipher-adapter 0.2.1 "Cordova sqlcipher adapter"
    uk.co.workingedge.phonegap.plugin.launchnavigator 5.0.4 "Launch Navigator"

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.