GithubHelp home page GithubHelp logo

localytics-cordova's People

Contributors

aspitz007 avatar bigbugbb avatar deronbrown avatar hootadam avatar kbataran avatar lewong avatar mriegel avatar yanca232 avatar

Stargazers

 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  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

localytics-cordova's Issues

Installation error

while running cordova plugin add https://github.com/localytics/localytics-cordova.git.I'm getting below error:
Error during processing of action! Attempting to revert...
Failed to install 'com.localytics.phonegap.LocalyticsPlugin':Error: Uh oh!
ENOENT: no such file or directory, open '/home/devuser/localdeals-html/plugins/com.localytics.phonegap.LocalyticsPlugin/www/Localytics.js'
at Error (native)
at Object.fs.openSync (fs.js:584:18)
at Object.fs.readFileSync (fs.js:431:33)
at module.exports.common.js-module.install (/home/devuser/.node/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/platforms/common.js:136:36)
at /home/devuser/.node/lib/node_modules/cordova/node_modules/cordova-lib/src/platforms/PlatformApiPoly.js:654:27
at Object.ActionStack.process (/home/devuser/.node/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/cordova-common/src/ActionStack.js:56:25)
at PlatformApiPoly.addPlugin (/home/devuser/.node/lib/node_modules/cordova/node_modules/cordova-lib/src/platforms/PlatformApiPoly.js:259:20)
at handleInstall (/home/devuser/.node/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:603:6)
at /home/devuser/.node/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:382:28
at _fulfilled (/home/devuser/.node/lib/node_modules/cordova/node_modules/q/q.js:787:54)
Error: Uh oh!
ENOENT: no such file or directory, open '/home/devuser/localdeals-html/plugins/com.localytics.phonegap.LocalyticsPlugin/www/Localytics.js'

Any plan to update to SDK v4?

Deeplinking from push notifications and the new rapid push notifications verification both require higher SDK version than the version that this plugin currently supported. Is there any plan to upgrade the SDK version to 4.1.0 or higher to support both? Thanks!

Places / Location Monitoring

I was wondering if there were plans on adding the location monitoring that can be used for the new places functionality into this plugin. I understand that is was just released and can take some time to get updated, but just wanted to know if it was in the pipeline for the near future.

Thanks, and awesome work on the plugin!

Cordova 6.0?

I've just added this to a Cordova 6.0 project. I've set up the key (getAppKey returns the right result), but the tracking data isn't showing up.

Reloading webview crashes causes EXC_BAD_ACCESS

Reloading my cordova app (Using location.reload() or when reloading the webview from outside) causes a crash in the Localytics plugin when calling autoIntegrate on the second time.

This is the stack trace:

* thread #1: tid = 0x5931a, 0x00000001811e80a0 libobjc.A.dylib`objc_retain + 16, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x313b9bec8)
  * frame #0: 0x00000001811e80a0 libobjc.A.dylib`objc_retain + 16
    frame #1: 0x000000010016fdb0 MyApp`-[LLLocalyticsManager autoIntegrate:launchOptions:] + 248
    frame #2: 0x000000018279c160 CoreFoundation`__invoking___ + 144
    frame #3: 0x000000018268fc3c CoreFoundation`-[NSInvocation invoke] + 284
    frame #4: 0x00000001826946ec CoreFoundation`-[NSInvocation invokeWithTarget:] + 60
    frame #5: 0x000000010017475c MyApp`+[Localytics forwardInvocation:] + 92
    frame #6: 0x000000018279a078 CoreFoundation`___forwarding___ + 404
    frame #7: 0x000000018269459c CoreFoundation`_CF_forwarding_prep_0 + 92
    frame #8: 0x000000010005e6e4 MyApp`-[LocalyticsPlugin autoIntegrate:](self=0x000000017005ad90, _cmd="autoIntegrate:", command=0x0000000170254ac0) + 344 at LocalyticsPlugin.m:150
    frame #9: 0x0000000100095328 MyApp`-[CDVCommandQueue execute:](self=0x000000017405b8d0, _cmd="execute:", command=0x0000000170254ac0) + 860 at CDVCommandQueue.m:181
    frame #10: 0x0000000100059004 MyApp`-[CDVWKWebViewEngine handleCordovaMessage:](self=0x0000000170075400, _cmd="handleCordovaMessage:", message=0x0000000170252210) + 236 at CDVWKWebViewEngine.m:343
    frame #11: 0x0000000100058de8 MyApp`-[CDVWKWebViewEngine userContentController:didReceiveScriptMessage:](self=0x0000000170075400, _cmd="userContentController:didReceiveScriptMessage:", userContentController=0x000000017012ec40, MyAppmessage=0x0000000170252210) + 200 at CDVWKWebViewEngine.m:327
    frame #12: 0x000000018bd304b8 WebKit`ScriptMessageHandlerDelegate::didPostMessage(WebKit::WebPageProxy&, WebKit::WebFrameProxy&, WebCore::SecurityOriginData const&, WebCore::SerializedScriptValue&) + 228
    frame #13: 0x000000018bcd1020 WebKit`WebKit::WebUserContentControllerProxy::didPostMessage(IPC::Connection&, unsigned long long, unsigned long long, WebCore::SecurityOriginData const&, unsigned long long, IPC::DataReference const&) + 216
    frame #14: 0x000000018bcd3364 WebKit`void IPC::handleMessage<Messages::WebUserContentControllerProxy::DidPostMessage, WebKit::WebUserContentControllerProxy, void (WebKit::WebUserContentControllerProxy::*)(IPC::Connection&, unsigned long long, unsigned long long, WebCore::SecurityOriginData const&, unsigned long long, IPC::DataReference const&)>(IPC::Connection&, IPC::MessageDecoder&, WebKit::WebUserContentControllerProxy*, void (WebKit::WebUserContentControllerProxy::*)(IPC::Connection&, unsigned long long, unsigned long long, WebCore::SecurityOriginData const&, unsigned long long, IPC::DataReference const&)) + 112
    frame #15: 0x000000018bb2a528 WebKit`IPC::MessageReceiverMap::dispatchMessage(IPC::Connection&, IPC::MessageDecoder&) + 120
    frame #16: 0x000000018bcacd18 WebKit`WebKit::WebProcessProxy::didReceiveMessage(IPC::Connection&, IPC::MessageDecoder&) + 32
    frame #17: 0x000000018baf379c WebKit`IPC::Connection::dispatchMessage(std::__1::unique_ptr<IPC::MessageDecoder, std::__1::default_delete<IPC::MessageDecoder> >) + 160
    frame #18: 0x000000018baf5db4 WebKit`IPC::Connection::dispatchOneMessage() + 204
    frame #19: 0x0000000186f0c860 JavaScriptCore`WTF::RunLoop::performWork() + 172
    frame #20: 0x0000000186f0ca8c JavaScriptCore`WTF::RunLoop::performWork(void*) + 36
    frame #21: 0x0000000182744278 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
    frame #22: 0x0000000182743bc0 CoreFoundation`__CFRunLoopDoSources0 + 524
    frame #23: 0x00000001827417c0 CoreFoundation`__CFRunLoopRun + 804
    frame #24: 0x0000000182670048 CoreFoundation`CFRunLoopRunSpecific + 444
    frame #25: 0x00000001840f6198 GraphicsServices`GSEventRunModal + 180
    frame #26: 0x000000018865c2fc UIKit`-[UIApplication _run] + 684
    frame #27: 0x0000000188657034 UIKit`UIApplicationMain + 208
    frame #28: 0x000000010003b2cc MyApp`main(argc=1, argv=0x000000016fdcbae0) + 76 at main.m:32
    frame #29: 0x00000001816545b8 libdyld.dylib`start + 4

Swizzled methods override openURL, break handleURL functionality

My app uses the Cordova handleURL method to import data files from email attachments. handleURL gets called via a notification broadcast from CDVAppDelegate.m. The localytics plugin replaces the default behavior which causes the notification to never be sent and breaks the app functionality.

I noted there were several swizzled methods which could cause similar problems.

Android app crashes

Android application is crashing, attaching the stact trace
Fatal Exception: java.lang.NullPointerException
at com.localytics.android.InAppManager._getInAppMessageMaps(InAppManager.java:1143)
at com.localytics.android.InAppManager._getQualifiedInAppMessageForTrigger(InAppManager.java:1104)
at com.localytics.android.InAppManager._inAppMessageTrigger(InAppManager.java:982)
at com.localytics.android.MarketingHandler$13.run(MarketingHandler.java:642)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.os.HandlerThread.run(HandlerThread.java:61)

Multiple push providers on iOS failing to register

In our app, we want to use Localytics SDK along with another push provider. But when the other SDK is enabled, the Localytics event "Localytics Push Registered" is not sent anymore. What can I do to fix this? The complete migration to Localytics is not yet possible.

Error adding plugin

First, apparently the phonegap repository is now gone (news to me), found this repository, tried to use the standard: cordova plugin add https://github.com/localytics/localytics-cordova.git

got this:

Repository "https://github.com/localytics/localytics-cordova.git" checked out to git ref "master".
Error: ENOENT, no such file or directory '/var/folders/fs/z2042s0d7vj7f07gckwkyd2c0000gn/T/git/1439577480923/plugin.xml'
    at Object.fs.openSync (fs.js:439:18)
    at Object.fs.readFileSync (fs.js:290:15)
    at Object.module.exports.parseElementtreeSync (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/util/xml-helpers.js:118:27)
    at new PluginInfo (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/PluginInfo.js:320:37)
    at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/util/plugins.js:45:30
    at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:787:54)
    at self.promiseDispatch.done (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:816:30)
    at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:749:13)
    at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:557:44
    at flush (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:108:17)

Has support for Cordova/Phonegap been dropped by Localytics? Is there something else that should be used in place?

I should also added that according to the README this:
cordova plugin add https://github.com/localytics/phonegap.git

that is no longer valid

Undefined symbols for architecture i386

Hello,

I'm currently trying to integrate localytics in my Ionic/Cordova project but building does not work.
Cordova version is 5.1.1 and cordova ios platform version is 3.8.0

Can someone please help?

Undefined symbols for architecture i386:
"_SCNetworkReachabilityCreateWithAddress", referenced from:
+[CDVReachability reachabilityWithAddress:] in CDVReachability.o
"_SCNetworkReachabilityCreateWithName", referenced from:
+[CDVReachability reachabilityWithHostName:] in CDVReachability.o
_kDefaultReachabilityApi in libGoogleAnalyticsServices.a(GAIReachabilityChecker.o)
-[TAGNetReachability start] in libGoogleAnalyticsServices.a(TAGNetReachability.o)
___49-[LLInAppManager ampMessageDictionaryForResults:]_block_invoke in libLocalytics.a(LLInAppManager.o)
"_SCNetworkReachabilityGetFlags", referenced from:
-[CDVReachability connectionRequired] in CDVReachability.o
-[CDVReachability currentReachabilityStatus] in CDVReachability.o
___49-[LLInAppManager ampMessageDictionaryForResults:]_block_invoke in libLocalytics.a(LLInAppManager.o)
"_SCNetworkReachabilityScheduleWithRunLoop", referenced from:
-[CDVReachability startNotifier] in CDVReachability.o
_kDefaultReachabilityApi in libGoogleAnalyticsServices.a(GAIReachabilityChecker.o)
-[TAGNetReachability start] in libGoogleAnalyticsServices.a(TAGNetReachability.o)
"_SCNetworkReachabilitySetCallback", referenced from:
-[CDVReachability startNotifier] in CDVReachability.o
_kDefaultReachabilityApi in libGoogleAnalyticsServices.a(GAIReachabilityChecker.o)
-[TAGNetReachability start] in libGoogleAnalyticsServices.a(TAGNetReachability.o)
-[TAGNetReachability stop] in libGoogleAnalyticsServices.a(TAGNetReachability.o)
"_SCNetworkReachabilityUnscheduleFromRunLoop", referenced from:
-[CDVReachability stopNotifier] in CDVReachability.o
_kDefaultReachabilityApi in libGoogleAnalyticsServices.a(GAIReachabilityChecker.o)
-[TAGNetReachability stop] in libGoogleAnalyticsServices.a(TAGNetReachability.o)
"_crc32", referenced from:
_ll_unzReadCurrentFile in libLocalytics.a(ll_unzip.o)
"_deflate", referenced from:
+[GAICompressionUtil gai_dataByCompressingBytes:length:compressionLevel:mode:] in libGoogleAnalyticsServices.a(GAICompressionUtil.o)
-[GCDWebServerGZipEncoder readData:] in GCDWebServer(GCDWebServerResponse.o)
-[LLAnalyticsUploader gzipDeflatedDataWithData:] in libLocalytics.a(LLAnalyticsUploader.o)
"_deflateEnd", referenced from:
+[GAICompressionUtil gai_dataByCompressingBytes:length:compressionLevel:mode:] in libGoogleAnalyticsServices.a(GAICompressionUtil.o)
-[GCDWebServerGZipDecoder open:] in GCDWebServer(GCDWebServerRequest.o)
-[GCDWebServerGZipEncoder open:] in GCDWebServer(GCDWebServerResponse.o)
-[GCDWebServerGZipEncoder close] in GCDWebServer(GCDWebServerResponse.o)
-[LLAnalyticsUploader gzipDeflatedDataWithData:] in libLocalytics.a(LLAnalyticsUploader.o)
"deflateInit2", referenced from:
+[GAICompressionUtil gai_dataByCompressingBytes:length:compressionLevel:mode:] in libGoogleAnalyticsServices.a(GAICompressionUtil.o)
-[GCDWebServerGZipEncoder open:] in GCDWebServer(GCDWebServerResponse.o)
-[LLAnalyticsUploader gzipDeflatedDataWithData:] in libLocalytics.a(LLAnalyticsUploader.o)
"_inflate", referenced from:
+[GAICompressionUtil gai_dataByInflatingBytes:length:isRawData:] in libGoogleAnalyticsServices.a(GAICompressionUtil.o)
-[GCDWebServerGZipDecoder writeData:error:] in GCDWebServer(GCDWebServerRequest.o)
_ll_unzReadCurrentFile in libLocalytics.a(ll_unzip.o)
"_inflateEnd", referenced from:
+[GAICompressionUtil gai_dataByInflatingBytes:length:isRawData:] in libGoogleAnalyticsServices.a(GAICompressionUtil.o)
-[GCDWebServerGZipDecoder close:] in GCDWebServer(GCDWebServerRequest.o)
_ll_unzCloseCurrentFile in libLocalytics.a(ll_unzip.o)
"inflateInit2", referenced from:
+[GAICompressionUtil gai_dataByInflatingBytes:length:isRawData:] in libGoogleAnalyticsServices.a(GAICompressionUtil.o)
-[GCDWebServerGZipDecoder open:] in GCDWebServer(GCDWebServerRequest.o)
_ll_unzOpenCurrentFile3 in libLocalytics.a(ll_unzip.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)

** BUILD FAILED **

failed to install plugin

I have been used this command " cordova plugin add https://github.com/localytics/localytics-cordova.git "
to install plugin to my project, my cordova version 5.2.0 and the errors below ,
please help

Failed to install 'com.localytics.phonegap.LocalyticsPlugin':Error: Uh oh!
"/Users/Documents/AndroidWorkspace/myApp/platforms/android/libs/android-support-v4.jar" already exists!
at Object.module.exports.common.copyNewFile (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/platforms/common.js:67:19)
at Object.module.exports.source-file.install (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/platforms/android.js:78:20)
at installWrapper (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/platforms/platforms.js:77:32)
at Object.ActionStack.process (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/util/action-stack.js:68:25)
at handleInstall (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:576:20)
at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:363:28
at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:787:54)
at self.promiseDispatch.done (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:816:30)
at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:749:13)
at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:509:49
Error: Uh oh!
"/Users/Documents/AndroidWorkspace/myApp/platforms/android/libs/android-support-v4.jar" already exists!
at Object.module.exports.common.copyNewFile (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/platforms/common.js:67:19)
at Object.module.exports.source-file.install (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/platforms/android.js:78:20)
at installWrapper (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/platforms/platforms.js:77:32)
at Object.ActionStack.process (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/util/action-stack.js:68:25)
at handleInstall (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:576:20)
at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:363:28
at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:787:54)
at self.promiseDispatch.done (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:816:30)
at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:749:13)
at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:509:49

Android: Push-icon in statusbar gets displayed as blank or white icon

We already figured out that this issue occurs because the Android guidelines standardised the icons structure/character.
Even though you provide a possibility/workaround to change the push-icon on android that's unfortunately only possible on native.
http://docs.localytics.com/dev/android.html#push-notification-options-android

Do you know another way or solution to change the push-icon? Otherwise this would be a pretty important feature request.

Receive custom data from campaign -> creatives section

With another push provider it is possible to listen to 'push-notification' (document.addEventListener('push-notification', callback);) and receive and handle custom data.

With Localytics I didn't find any solution to handle this.

Is there any possibility I didn't find?

GCM to FCM

Hi ,

We are using the below plugin for FCM push notification and related to FCM this plugin is not updated or not i'm not sure , but this plugin is not working for FCM , after fallowing some stack-overflow i resolved the issue with below code .

plugin - https://github.com/mallzee/phonegap-localytics-plugin

plugin gradle file :

dependencies {
compile 'com.android.support:support-v4:26.0.2'
compile 'com.google.android.gms:play-services-ads:11.4.2'
// GCM to FCM migration below line of code not required
//compile 'com.google.android.gms:play-services-gcm:11.4.2'
compile 'com.localytics.android:library:5.4.0'
compile "com.google.firebase:firebase-messaging:11.4.2"
}

Android gradle file :

apply plugin: 'com.google.gms.google-services' โ€“( This is mandatory line which you suggested )
com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true

please add the below line inside the function .

classpath 'com.google.gms:google-services:4.0.2'

dependencies {
classpath 'com.android.tools.build:gradle:3.0.0'
}

Please let me know the process is correct or not which i fallowed .

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.