-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Titanium sdk 6.0.0 support? #54
Comments
there is already a PR: #44 |
Thanks, I tried to build using the manifest but the following errors occured ndk.build: BUILD FAILED |
Its compiling fine for me. Which android.platform version and ndk version are you using? |
I am quite inexperienced with these kind of things but here is my titanium.platform=/Users/a/Library/Application ndk I downloaded the latest from android studio sdk manager are you able to just send me the build? On Thu, Nov 17, 2016 at 2:08 AM, Michael [email protected] wrote:
|
sorry to push with this but if you are able to send me a 6.0.0 build that would be great |
thank you! On Sat, Nov 19, 2016 at 6:59 PM, Michael [email protected] wrote:
|
@m1ga that link is giving me a corrupt zip file. Anything I need to do differently to grab it from you? @chris41188 did you do anything special to extract it? |
@mrkiley sorry, I removed the file. Will upload it again later! |
Thanks @m1ga! |
@mrkiley Link is working again! |
Thanks @m1ga! |
@m1ga, have you thought about forking it over to your github repo? Could save a lot of people trouble in the next few months of your modifications end up not getting merged anytime soon! |
Hi, I faced below error when using the latest nl.vanvianen.android.gcm-android-2.0.zip: [ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/iid/MessengerCompat$1; What should I do to resolve it |
@sglok, looks like some sort of conflict. Are you sure you aren't adding the module twice somewhere? |
@mrkiley, Well, I switched back to ti sdk 5.5.1GA, I don't such issue. Btw, I have removed manually those duplicated class files and jar back. I encounter next problem, where below is the error: [WARN] : Bundle: Key google.sent_time expected String but value was a java.lang.Long. The default value was returned. I suspect in 2.0 is missing checking or changed: |
With the version 2.0 This bug when onMessage event is fired : an idea ? |
android app crashes always on callback event using appcelerator ti sdk 6.0 along with your module. also doesn't receive push notification when app is closed. |
@talalmanaa If you further debug the android app crashes, i suspect that is same root cause as i faced. |
@sglok did you manage to resolve this issue ? |
@talalmanaa I need to learn how to compile the module. Unless author can help us to resolve it |
@m1ga kindly help us resolving app crashing issue on callback of version 2.0 |
I'll have a look at this soon! |
OK thanks ! Other issue, if I recompile this module with ant, there is this bug BUILD FAILED My build properties : titanium.platform=/Users/xxx/Library/Application Support/Titanium/mobilesdk/osx/6.0.0.GA/android Thanks |
We are mixing many different errors in here. Perhaps we should separate them a bit to fix them. @sglok @jdbaculard can you please provide the full error message of this bug (the line where it happens). The old fix #45 should be in 2.0 because I've used the latest code @jdbaculard the build problem shouldn't be a bug but just a wrong configuration. For me it's compiling fine on my linux machine with the same android/ti folders (i don't have the ndk-link in my build.properties) @talalmanaa can you provide any error for the crash? |
@m1ga I faced 2 problem:
[ERROR] : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/iid/MessengerCompat$1;
[WARN] : Bundle: Key google.sent_time expected String but value was a java.lang.Long. The default value was returned. I suspect in 1.7 code is like below |
@sglok Thank you for the error log! Could try to get the log from the android |
D/GCMIntentService(31097): (IntentService[GCMIntentService--2]) [104358,178825] Push notification received |
Ok thanks. It works I used ndk 11 and ti sdk 6.0.1 The jar compile but the zip file didn't generated --> doc issue. The error message : dist: post.jar: python.set.exec: python.check: init: pre.docgen: docgen: post.docgen: check.respackage: @+ |
@m1ga any updates? |
@sglok have you tried the other PR I've mentioned above? |
Hi, I have de same error that @sglok [ERROR] Failed to run dexer: ti.map module also include google.play.services What would be the solution? Thanks |
It works now. |
@m1ga, your file seems to miss the updates introduced into the main thread between 1.6 and 1.7 version, this is why it occasionally crashes with the issues same as in issues filed for 1.6 version (something like illegal argument exception when using startsWith on some string). You should probably update the java code and then recompile. As for play services.... ugh, well, I don't know about that, my play services are custom tailored anyway, so I did not notice all those errors :-/ |
Thanks @annakozy2011 I've just compiled the PR, it wasn't done by me 😄 But there is already fork which started from version 1.7 at: https://github.com/skypanther/gcmpush with a binary in the dist folder. Perhaps that works better (and uses a "good" play service version) |
Well, i just reported this to make people aware that the binary in this
thread has outdated code and crashes now and then. From the looks of it,
this other fork has the 1.7 code, but I cant test as i have already
compiled it locally for my client
On Mon, 27 Mar 2017 at 19:39, Michael <[email protected]> wrote:
Thanks @annakozy2011 <https://github.com/annakozy2011> I've just compiled
the PR, it wasn't done by me 😄 But there is already fork which started
from version 1.7 at: https://github.com/skypanther/gcmpush with a binary in
the dist folder.
Perhaps that works better (and uses a "good" play service version)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#54 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAsOda8EjqCLm6S_6FsCbqAqO9a5Bg2cks5rp_RVgaJpZM4KjGZ2>
.
|
Hi All, I am getting below error while compiling an app with this module. Please let me know how can i solve this issue? [ERROR] : TiApplication: (main) [61,1045] Sending event: exception on thread: main msg:java.lang.UnsatisfiedLinkError: dlopen failed: library "libstlport_shared.so" not found; Titanium 6.0.0,2016/11/13 01:23,undefined |
The error you are reciving should be related to the sqlcipher module, not this one. Are you using that in your project? |
@m1ga No, I am not using any other module. Right now i am making one demo app to test this module. |
Anyone has solution? |
@jdbaculard, for the error you show in your post above (the KeyError: 21 in docgen) I found it to be resolved as a workaround if you install Android API Level 21 on your system (in my case I had cleaned up all but api level 23). The underlying problem appears to be that the build script from Titanium in the docgen section doesn't pass in the actual Android API level used in the module, rather it tries to use a default api level (which is set to 21 in 6.1.0.GA and probably all previous 6.x). That fails however if you don't have android-21 installed. This is the line that is failing https://github.com/appcelerator/titanium_mobile/blob/a538fd552d0ba8317f174c27a631d01b46cafe64/support/android/androidsdk.py#L127 and it appears to be failing because the dictionary of api levels provided at the beginning of this file doesn't even include the default that is set (21). If you install android-21 on your system, that line above won't be called because instead this line will return with a value https://github.com/appcelerator/titanium_mobile/blob/a538fd552d0ba8317f174c27a631d01b46cafe64/support/android/androidsdk.py#L125 The better fix really should be that the api level from the module get passed into the androidsdk scripts correctly and/or the dictionary of api levels should at least include the default value. Better yet it should be dynamic and if no acceptable values are found it should return a sensible error for the user building, instead of a python dictionary failure message. Hope this helps. |
@m1ga the link http://migaweb.de/nl.vanvianen.android.gcm-android-2.0.zip is not working :( |
@kassemitani have a look at this fork: https://github.com/skypanther/gcmpush/tree/master/dist it has a 6+ version |
@m1ga The module from the link you've provided works just fine w/ Ti SDK 6+, however I'm experiencing an issue when the Push Notification does not show up when the app is closed/background (even if I can see some console logs regarding that the push notification message was received). Do you know by chance what can cause that problem? Thanks! 👍 |
NVM. It looks like the issue was happening because of the data I was sending from the server. I was sending |
Will this library be rebuilt for Titanium sdk 6.0.0 support?
The text was updated successfully, but these errors were encountered: