jerodfritz / tiintercomandroid Goto Github PK
View Code? Open in Web Editor NEWIntercom.io Appcelerator Module for Android
License: MIT License
Intercom.io Appcelerator Module for Android
License: MIT License
Hi Centogram,
Do you have an updated dist for 6.0.0.GA+? I've tried to do this myself but I keep getting stuck with the hook/intercom.js and the R$color bug that is listed in a previous issue for this module
It seems fairly easy to upgrade with this guide: https://medium.com/all-titanium/rebuilding-android-modules-for-titanium-6-x-b20086c5cb47
Much appreciated!
Markive
Hi @minhnc . Would you be available to upgrade this module to the latest Intercom SDK? We would be happy to compensate you for your time to help.
Hi Centrogram,
I have an issue running this module. I get the following error:
Unable to find explicit activity class (com.myapp/io.intercom.android.sdk.activities.MainActivity); have you declared this activity in your AndroidManifest.xml?
Source: TiIntercom.presentConversaionList();
I'm not sure if this helps, but I definitely can't get this to work: http://stackoverflow.com/questions/3433778/android-content-activitynotfoundexception
Do I need to put anything else in an AndroidManifest.xml inside my App itself? Also I assume I have to include the resources in /platform/android?
First, thanks for creating maintaining this module. It's saved me soooo much time.
Everything is working great except for Push notifications.
After retrieving (via Ti.Cloudpush) a GCM token, calling TiIntercom.setDeviceToken(token, icon) fails with intercom-sdk-gcm module not found. Please add it to your build.gradle
.
See below.
I can easily get my hands on Intercom's copy of its intercom-sdk-gcm, but I'm not at all sure where to put it or how to refer to it once I've put it somewhere...
Let me know if there's any info you need, debug or otherwise, or anything you'd like me to try and report to you.
Code
OF.log("XXX require(ti.cloudpush)");
var CloudPush = require('ti.cloudpush');
OF.log("XXX CloudPush.retrieveDeviceToken");
CloudPush.retrieveDeviceToken({
success : function(e) {
OF.log("XXX TiIntercom.setDeviceToken: " + e.deviceToken);
TiIntercom.setDeviceToken:(e.deviceToken, Ti.App.Android.R.drawable.appicon);
OF.log("XXX Done with TiIntercom.setDeviceToken: " + e.deviceToken);
},
error : function(e) { OF.log("error CloudPush.retrieveDeviceToken: " + e.error); }
});
Adb output
05-16 14:25:18.312 27305 27327 I TiAPI : 14:25:18 XXX require(ti.cloudpush)
05-16 14:25:18.375 27305 27327 I TiAPI : 14:25:18 XXX CloudPush.retrieveDeviceToken
05-16 14:25:18.396 27305 27327 I TiAPI : 14:25:18 XXX TiIntercom.setDeviceToken: XXXXXXXXXXXXXXXXXXXXXXXX
05-16 14:25:18.399 27305 27327 E Intercom-Android: ERROR: intercom-sdk-gcm module not found. Please add it to your build.gradle
05-16 14:25:18.399 27305 27327 D TiintercomandroidModule: (KrollRuntimeThread) [739,1255] Intercom : setDeviceToken()
05-16 14:25:18.399 27305 27327 I TiAPI : 14:25:18 XXX Done with TiIntercom.setDeviceToken: XXXXXXXXXXXXXXXXXXXXXXXX
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.