Google Play Services Breaking Smartfox on Android

Post here your questions about the Java client / Android API for SFS2X

Moderators: Lapo, Bax

Akira
Posts: 6
Joined: 30 Aug 2013, 21:36

Google Play Services Breaking Smartfox on Android

Postby Akira » 28 Mar 2014, 19:36

Hi,

Google is migrating its Google Mobile Ads SDK from Admob to Google Play Services. When converting our Android multiplayer app to Google Play Services, SmartFox simple can't connect anymore with the error:

04-08 15:35:35.099: W/System.err(14036): 13131 [New I/O client worker #1-1] WARN sfs2x.client.controllers.SystemController - No handler exists for this event: 0

It is very easy to reproduce the problem:

1) Download install and run the SmartFox Server on your machine (with the latest patch applied)
2) Download the Android SimpleChat example app and update the SmartFox Client API jars
3) Run the app and connect with the server running on your machine. The app will work flawlessly, as expected
4) Follow these instructions to integrate the Google Mobile Ads SDK:
https://developers.google.com/mobile-ads-sdk/docs/
https://developer.android.com/google/pl ... setup.html
5) Add a simple banner (on the XML) of the sample app
6) The app does not connect anymore

It was tested with the latest Android ADT and SDK in a Samsung Galaxy S2 with Android 4.1.2. I can send the SimpleChat example with the banner integrated if necessary.

This is a very serious problem because as of August 1, 2014 Google will not accept apps with the Admob implementation (only Google Play Service implementation).

Best regards,
Akira
User avatar
Lapo
Site Admin
Posts: 20219
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Google Play Services Breaking Smartfox on Android

Postby Lapo » 29 Mar 2014, 18:35

Thanks for reporting. We didn't know about this.
If you could send the example application you are using it would be great.

You can zip it and send it to our support@... email with a reference to this post. Or upload it to a free service and send us a link

Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
Akira
Posts: 6
Joined: 30 Aug 2013, 21:36

Re: Google Play Services Breaking Smartfox on Android

Postby Akira » 31 Mar 2014, 16:17

Hi Lapo,

I've just sent an email with the projects files used to reproduce the problem.

Best regards,
Akira
User avatar
Lapo
Site Admin
Posts: 20219
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Google Play Services Breaking Smartfox on Android

Postby Lapo » 31 Mar 2014, 17:20

Thank you, mail received.
We'll take a look and let you know.
Lapo

--

gotoAndPlay()

...addicted to flash games
schwips
Posts: 1
Joined: 14 Mar 2015, 08:22

Re: Google Play Services Breaking Smartfox on Android

Postby schwips » 15 Mar 2015, 09:38

Hi

I have the same problem. Are there any solutions?

Thanks
User avatar
Lapo
Site Admin
Posts: 20219
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Google Play Services Breaking Smartfox on Android

Postby Lapo » 16 Mar 2015, 15:09

Hi,
to be honest this was not a real problem. We exchanged a number of emails where we could not reproduce the error but the client still was having all sorts of weird error.

It turned out that there were multiple problems with the client's setup: mixed jar files from multiple distributions of our API and problems with Eclipse.

Finally he setup Android Studio on another machine, downloaded our API from the website and the problem disappeared.

Maybe you're facing a similar issue?
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X Java / Android API”

Who is online

Users browsing this forum: No registered users and 1 guest