Closed Lenndev closed 7 years ago
The latest version should work the same with titanium sdk 5.5.1
Really? cause i thought its minium ti sdk was set on ti sdk 6.x.x
How have you implemented the module?
i downloaded the zip, unpacked it and put it in modules folder, then added it to tiapp (if i remember correctly)
Can you paste your tiapp.xml here? Also make sure to be using the right google-play-services jar for your project https://github.com/caffeinalab/ti.goosh/tree/master/gps-jars
<?xml version="1.0" encoding="UTF-8"?>
<ti:app xmlns:ti="http://ti.appcelerator.org">
<id>net.app.my</id>
<name>myApp</name>
<version>2.4</version>
<publisher>My Company</publisher>
<url>http://www.myapp.com/</url>
<description>undefined</description>
<copyright>2016 by Fresh Apple</copyright>
<icon>appicon.png</icon>
<fullscreen>false</fullscreen>
<navbar-hidden>false</navbar-hidden>
<analytics>false</analytics>
<!-- WARNING: Please note the owner of the GUID when adding a new one or commenting one out. -->
<guid>xxx-xxxx-xxxx-xxxxx</guid>
<property name="gcm.senderid" type="string">xxxxxxx</property>
<ios>
<enable-launch-screen-storyboard>true</enable-launch-screen-storyboard>
<plist>
<dict>
<key>UISupportedInterfaceOrientations~iphone</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationPortrait</string>
</array>
<key>UIRequiresPersistentWiFi</key>
<false/>
<key>UIPrerenderedIcon</key>
<false/>
<key>UIStatusBarHidden</key>
<false/>
<key>UIStatusBarStyle</key>
<string>UIStatusBarStyleDefault</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>my App requiese access to the gallery
</string>
<key>NSCameraUsageDescription</key>
<string>My app needs acces to the camera
</string>
</dict>
</plist>
</ios>
<android xmlns:android="http://schemas.android.com/apk/res/android">
<manifest android:installLocation="preferExternal"
android:versionCode="1" android:versionName="1.0.0" package="net.myApp.app">
<supports-screens android:anyDensity="true"
android:largeScreens="true" android:normalScreens="true"
android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true"/>
<application android:theme="@style/myAppTheme">
<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version"/>
<activity android:alwaysRetainTaskState="true"
android:configChanges="keyboardHidden|screenSize"
android:label="@string/app_name"
android:launchMode="singleTask"
android:name=".ATPActivity"
android:screenOrientation="portrait" android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
</application>
<property name="ti.ui.defaultunit" type="string">dp</property>
<property name="ti.android.bug2373.finishfalseroot" type="bool">true</property>
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="23"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_SETTINGS"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<!-- new !-->
<supports-screens android:anyDensity="true"
android:largeScreens="true" android:normalScreens="true"
android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true"/>
<uses-feature android:name="android.hardware.touchscreen" android:required="false"/>
<uses-feature android:name="android.hardware.camera" android:required="false"/>
<uses-feature
android:name="android.hardware.camera.autofocus" android:required="false"/>
<uses-feature android:name="android.hardware.sensor" android:required="false"/>
<uses-feature
android:name="android.hardware.sensor.accelerometer" android:required="false"/>
<uses-feature
android:name="android.hardware.sensor.proximity" android:required="false"/>
<uses-feature android:name="android.hardware.sensor.compass" android:required="false"/>
<uses-feature android:name="android.hardware.sensor.light" android:required="false"/>
<uses-feature
android:name="android.hardware.location.network" android:required="false"/>
<uses-feature android:name="android.hardware.wifi" android:required="false"/>
<uses-feature android:name="android.hardware.bluetooth" android:required="true"/>
<uses-feature android:name="android.hardware.location.gps" android:required="true"/>
<!-- new !-->
</manifest>
</android>
<mobileweb>
<precache/>
<splash>
<enabled>true</enabled>
<inline-css-images>true</inline-css-images>
</splash>
<theme>default</theme>
</mobileweb>
<modules>
<module platform="commonjs">ti.cloud</module>
<module platform="iphone" version="1.12">com.behindmedia.medialibrarypicker</module>
<module platform="iphone">ti.imagefactory</module>
<module platform="android">com.rkam.swiperefreshlayout</module>
<module platform="android">ti.mediapicker</module>
<module platform="android">de.marcelpociot.autofocus</module>
<module platform="android">com.alcoapps.imageutility</module>
<module platform="android">fh.imagefactory</module>
<module platform="android" version="1.6.2">ti.goosh</module>
</modules>
<deployment-targets>
<target device="android">true</target>
<target device="ipad">true</target>
<target device="iphone">true</target>
<target device="mobileweb">false</target>
<target device="windows">false</target>
</deployment-targets>
<sdk-version>5.5.1.GA</sdk-version>
<plugins>
<plugin version="1.0">ti.alloy</plugin>
</plugins>
<property name="ti.ui.defaultunit" type="string">dp</property>
<property name="appc-app-id" type="string">xxxxx</property>
<property name="acs-authbase-url-development" type="string">https://secure-identity.cloud.appcelerator.com
</property>
<property name="acs-base-url-development" type="string">https://api.cloud.appcelerator.com</property>
<property name="acs-oauth-secret-development" type="string">xxxxx</property>
<property name="acs-oauth-key-development" type="string">xxxx</property>
<property name="acs-api-key-development" type="string">xxxx</property>
<property name="acs-username-development" type="string">appc_app_user_dev</property>
<property name="acs-password-development" type="string">xxx</property>
<property name="acs-authbase-url-production" type="string">https://secure-identity.cloud.appcelerator.com</property>
<property name="acs-base-url-production" type="string">https://api.cloud.appcelerator.com</property>
<property name="acs-oauth-secret-production" type="string">xxxx</property>
<property name="acs-oauth-key-production" type="string">xxxx</property>
<property name="acs-api-key-production" type="string">mdIxvxh20RbKssXP8a6THVkDZRoPdses</property>
<property name="acs-username-production" type="string">appc_app_user</property>
<property name="acs-password-production" type="string">xxx</property>
<property name="appc-org-id" type="string">xxxx</property>
<property name="appc-creator-user-id" type="string"xxxxxx/property>
<property name="run-on-main-thread" type="bool">true</property>
</ti:app>
hi sorry for the delayed response, here is my tiapp.xml About the google play services i followed the instructions on
but maybe i made a mistake in that...
in the lib folder of version 1.6.2 there is a google-play-services-tigoosh.jar ... it wasnt clear to me if i need to use this one or manipulate it or do anything with it...
extra info would be nice... And i'll retry to use the latest version, but for 80% i am sure it needs ti SDK 6.x.x
to be clear... i can receive push notifications when app is in foreground.. and i do receive them if the app is in background, but then the app crashes on opening with this error
As I thought, it seems like your issue is within the app and not the module. Your app id doesn't match package name
<id>net.app.my</id>
<manifest android:installLocation="preferExternal"
android:versionCode="1" android:versionName="1.0.0" package="net.myApp.app">
This isn't a module issue. Please submit issues only relative to the module please.
Hi, all!
Just implemented your nice and easy plugin (v 1.6.2, since i need to build on ti sdk 5.5.1) If the app is in foreground, it all works fine, even if the app is in background (not closed completely) i receive the push notification (although the badge is not shown), but onclick my app crashes and i get the following error:
<property name="ti.android.bug2373.finishfalseroot" type="bool">true</property>
So i am wondering if anyone of you can assist me in resolving this "issue" i have.
testing on Samsung galaxy J7. Ti SDK 5.5.1 , ti.goosh v 1.6.2