Skip to content
This repository has been archived by the owner on Jan 1, 2021. It is now read-only.

Force Close on startup : missing com.google.android.gsf #23

Open
skyguy opened this issue Jan 21, 2013 · 4 comments
Open

Force Close on startup : missing com.google.android.gsf #23

skyguy opened this issue Jan 21, 2013 · 4 comments

Comments

@skyguy
Copy link

skyguy commented Jan 21, 2013

After the first run, the app Force Closes immediately on startup. The log starting the HomeActivity generates an exception that the device does not have package : com.google.android.gsf

This is running on CyanogenMod 7.0 without any Google apps installed.

App was downloaded from the F-Droid store ( https://f-droid.org/ )

@tbeitter
Copy link

I have a similar issue:
The app is running If started the first time after installing. But after closing it will not start again. I only get a "unfortunately, Friendica has stopped". After that I can reinstall and reconifgure and it will run one time again.

@luelista
Copy link
Owner

Hi,
that's caused by a reference in the app to google's cloud messaging service. Even if it's not used later on, it is called once if a user is already logged in while starting the app.

One could easily fix that problem by checking for the availability of the gcm library in HomeActivity.java, line 83.
I'd do it myself but I'm a bit busy atm.

Edit: Even a try-catch statement might be enough... I'll give it a try

@tbeitter
Copy link

Indeed. I got a friendica-debug.apk with deactivated googlecode today. With this version I do not have any problems. Would be great to have a google-free versoin on f-droid, too.

luelista pushed a commit that referenced this issue May 30, 2013
- dont crash if gcm not installed (issue #23)
- added IntelliJ IDEA project files
@luelista
Copy link
Owner

I created a version with a try-catch around the GCM init part. You might try that version and tell me if it works as I don't have a device without google apps.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants