boulerzzz's Forum Posts

  • Hi!

    I got 2 questions about exporting to IOS using phonegap. I've been using Cocoon but since it seems like they died and don't update anymore I've decided to use phonegap.

    Tried it first time today and it was really simple and performance was nice!

    There are 2 things I was wondering about though and maybe someone who has been using phonegap longer can answer. :)

    1. Is this the correct way to add splash and icons in config.xml? Found this on phonegaps site: docs.phonegap.com/phonegap-build/configuring/icons-and-splash

    But there were other instructions too that looked different.

    We are using cordova cli 6.5.0, right? When I did the following the icons and splash worked great on my test device (iphone 5 - ios 10.3). But will it also work on newer iphones? It only says "iphone" & "iPhone 6 / 6+" in my config. Do I have to add something else for Iphone 7 and newer?

    This is how I added icons

    <!-- iPhone 6 / 6+ -->

    <icon src="icon-60@3x.png" platform="ios" width="180" height="180" />

    <!-- iPhone / iPod Touch -->

    <icon src="icon-60.png" platform="ios" width="60" height="60" />

    <icon src="icon-60@2x.png" platform="ios" width="120" height="120" />

    <!-- iPad -->

    <icon src="icon-76.png" platform="ios" width="76" height="76" />

    <icon src="icon-76@2x.png" platform="ios" width="152" height="152" />

    <icon src="icon-83.5@2x.png" platform="ios" width="167" height="167" />

    <!-- Settings Icon -->

    <icon src="icon-small.png" platform="ios" width="29" height="29" />

    <icon src="icon-small@2x.png" platform="ios" width="58" height="58" />

    <icon src="icon-small@3x.png" platform="ios" width="87" height="87" />

    <!-- Spotlight Icon -->

    <icon src="icon-40.png" platform="ios" width="40" height="40" />

    <icon src="icon-40@2x.png" platform="ios" width="80" height="80" />

    <icon src="icon-40@3x.png" platform="ios" width="120" height="120" />

    This is how I added splash

    <!-- iPhone and iPod touch -->

    <splash src="Default.png" platform="ios" width="320" height="480" />

    <splash src="Default@2x.png" platform="ios" width="640" height="960" />

    <!-- iPhone 5 / iPod Touch (5th Generation) -->

    <splash src="Default-568h@2x.png" platform="ios" width="640" height="1136" />

    <!-- iPhone 6 -->

    <splash src="Default-667h@2x.png" platform="ios" width="750" height="1334" />

    <splash src="Default-Portrait-736h@3x.png" platform="ios" width="1242" height="2208" />

    <splash src="Default-Landscape-736h@3x.png" platform="ios" width="2208" height="1242" />

    <!-- iPad -->

    <splash src="Default-Portrait.png" platform="ios" width="768" height="1024" />

    <splash src="Default-Landscape.png" platform="ios" width="1024" height="768" />

    <!-- Retina iPad -->

    <splash src="Default-Portrait@2x.png" platform="ios" width="1536" height="2048" />

    <splash src="Default-Landscape@2x.png" platform="ios" width="2048" height="1536" />

    Is this how you do it? I did get a warning about a missing 1024x1024 icon when uploading to testflight.

    2 My app did not start at first. It only logged me into game center but newer went from loader layout to the game. I then did some research and replaced the "cordova-plugin-wkwebview" with "cordova-plugin-wkwebview-ionic-xhr" and everything worked fine. Is this something you always have to do in phonegap?

    Just thought I would ask here in case someone could clarify a little bit.

  • radbrothers

    I'm a little bit curious.

    Do you get this in all your apps?

    What plugins are you using? I'm using the Firebase plugin from rexrainbow and cranberrys google analytics. Maybe one of these could cause problems?

  • radbrothers

    Did you find any solution? I've been looking all over the place for the root cause.

    It sucks because Google Play is downranking apps so hard right now because of this! Android vitals does not really give any helpful information about the issue either.

    Maybe we should just kill the app when it's suspended? That should solve this shouldn't it?

  • Thanks for the fast reply Ashley. Nice to hear C2 does not use any wake locks. Then it must be something I have done in my events that triggers this or a 3rd party plugin i'm using, correct?

    Here is a graph from my android vitals section showing the issue in one version of the app.https://imgur.com/a/t1NLMuj

    This shows something in my app keeps the cpu active in some devices when it is in the background.

    BTW. This is only happening on devices running android 8 (maybe google only monitors this in the latest android though?)

  • Hi guys!

    Since some time ago google ranks apps according to the performance. You can check how your app is doing in the vitals section in developer console.

    I get a really high value in the battery section (0.5% & lowest 2%) and google is telling me to do something about it. What can I do to decrease this number? How can I even detect what is wrong?

    There is a cordova plugin to disable wakelocks right? Should I use that plugin to solve this issue somehow?

    Any help is appreciated!

  • HI GUYS!

    Just finished my game Word Challenge! Below is a video of the gameplay! The objective is to find all the hidden words by using the letters you are given. Try it out if you like word games! It´s really fun and challenging! :)

    Subscribe to Construct videos now

    GET ON ANDROID

    https://play.google.com/store/apps/details?id=com.rosendal.wordchallenge

    GET ON IOS

    https://itunes.apple.com/us/app/word-challenge-anagram-games/id1322308718?l=sv&ls=1&mt=8

    HOW TO PLAY

    • The aim of this wordpuzzle is to find the hidden words.

    • Swipe the letters and link them togheter to type.

    • Each word can be used only once per round.

    • Longer words give more points and increase your time remaining.

    • Sometimes you get a bonus question. Answer the bonusquestion to get extra points.

    MULTIPLE LANGUAGE SUPPORT

    • English

    • Français

    • Deutsch

    • Svenska

    • Русский

    • Suomi

    • Română

    • Norsk

    • Español

    • Български

    • Türkçe

    • Italiano

    • Nederlands

    • Dansk

    • Polski

    • Slovenčina

    • Íslenska

    • Català

  • It turns out the GA C2 plugin does work with Cocoon after all!!! While I was testing they were having technical difficulties with data processing or something (they put an announcement up), so there are longer than usual delays of several hours for stats to be shown in the 'live feed'. But when I got up this morning I can see all the stats from my tests yesterday.

    So happily I can confirm that GA C2 plugin works with Cocoon :

    Hey Artpunk what plugin did you use in Cocoon when compiling? I can't install the "cordova-plugin-gameanalytics" plugin. Cocoon throws an error saying “Uh oh!

    “....cordova-plugin-gameanalytics/GameAnalyticsCordova.m” already exists!” when I add it.

  • I have the Browser: On back button -> Browser -> Close

    Wonder if that works on all devices tho since this user insists she can't close the app...

    Whats the difference between closing the app by pressing the "home button" or the "back button"?

    Also if the user has a device that only got the soft buttons (the touch screen buttons on the bottom of the screen, no physical buttons). If those are hidden during gameplay. How do they close the app?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hi guys!

    What is the standard way to close an app on android?

    I though you just press the "home button" or "back button" to return to the home screen. However I received a mail from a user who said she has to restart the phone in order to close my game. I had about 10 friends test my game and they all closed the app by pressing the "home button".

    This user said she is using the Samsung Galaxy Tab A6.

    IF anyone owns that device could you please try and download my game and check if you can close it?

    Link to game: https://play.google.com/store/apps/details?id=com.rosendal.wordchallenge

    Do you need to make a in-game "close app" button?

  • What should the string look like when you want to send user-user notifications?

    plugin says "Like: {app_id:'xxxxxxxx',contents:{en:'Message'}} Read more here: https://documentation.onesignal.com/v2. ... tification"

    The link is dead. Where do I place the recievers ID?

  • Thanks!

    I wish you good luck in your projects too! :]

  • Hi!

    So my problem is I cannot export to IOS atm because i'm getting the "error fetching data.js" when the game starts.

    This problem really started on r250 but at that time it worked fine by just replacing the version number "25000" in the .caproj file with "24900" before export and the error would go away. Now that does not work anymore since I was upgraded to 252 (my last update on IOS was 12.1.2018 and that worked fine by replacing version number with "24900")...

    I don't really understand this but maybe it would work if could go back to the 250 version (or older) again. What does the version number in the caproj really do? Is lowering that number the same thing as using an older version of C2?

  • Hi! Thank you!

    I used a json file with all the translations for the game. Its not that many strings after all. There are open source projects that have alot of game translations you can use.

    My friend has alot of word lists he has made, and for some languages you can even find free lists you can use in your projects! Word lists are huge but I just needed words that are 3-6 letters long. I have different files with 3, 4, 5 and 6 letter words for each language.

    The silhouette guessing I generated by using a black sprite and effects. I don't remember exactly how I did but there was a great tutorial on effects somewhere!

    (If I remember correctly I used a black sprite with the "source atop" blend mode and placed it above the animal. That layer also has force own texture set to "yes")

  • I have made simpler multiplayer games (turn based) using Firebase with great success!

    Rexrainbow made some great plugins for Firebase.

    You can find them here: scirra.com/forum/plugin-firebase_t121776

    He also has tutorials and examples of his plugins!

  • Hola guys!

    I've been working a project called Word Challenge lately. There was a game called Word Challenge on Facebook before but they removed it so the only way to play was to make my own game.

    If you remember the game or just like word/puzzle games try this one out!

    ANDROID version:

    https://play.google.com/store/apps/details?id=com.rosendal.wordchallenge

    IOS version:

    https://itunes.apple.com/us/app/word-chllenge-anagram-game/id1322308718?mt=8

    The supported languages are:

    • English

    • Français

    • Deutsch

    • Svenska

    • ???????

    • Suomi

    • Româna

    • Norsk

    • Español

    • ?????????

    • Türkçe

    • Italiano

    • Nederlands

    • Dansk

    • Català