Segmented Control widget mouseDown
(apologies, this was initially sent to the wrong email) Is there any way to capture mouseDown/Up on a Segmented Control widget? hiliteChanged is the only message that is documented or shows up in the Script Editor and standard mouseDown/Up handlers aren't acknowledged. Am I missing something or does this need to be enabled first in LCB and then passed to LC? I tried putting a mouseDown/Up on the widget and it doesn't trigger. I tried putting the widget in a group by itself (a trick I learned so I could put Effects on widgets) and applying the mouseDown/Up script to the group and it doesn't trigger. I add another object to that group and when I click on that other object the group script finally triggers, but not when clicking on the widget. My problem is that I can't find a way to determine if the item of the Segmented Control that was clicked was already the current hilitedItem. I know I can toggle the hilite, but I just want to know if the current "active" item has been clicked again. My goal is to replace 3 buttons that I use to sort a dataGrid by 3 different filters. Currently I have the buttons scripted to act like a group of radio buttons (but they are standard buttons for easier skinning) and realize if they are the "active" button and toggle sorting by descending/ascending for that filter (the iconPresetName of a SVG widget is also toggled at this time to indicate the sort direction). --Andrew Bell ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
mobileSensorAvailable accuracy on Android
I'm getting false positives when using mobileSensorAvailable("location") with Location Services disabled on my device. iOS is able to determine Location Services is disabled and notify user (via a short script), but the same code in my Android build is telling me the sensor is available. I thought maybe this was a LC9 thing, but compiling with LC8 demonstrated the same behavior. I'm using this to calculate distance to various locations from the device, but since I didn't have a fail check written to make sure the coordinates returned are not empty (since I'm already checking for the sensor to be available) the values returned are bogus and seem to be based off a starting lat/log of 0,0 which is in the Atlantic Ocean. Even using the provided lesson and demo stack, LiveCode would tell me the location sensor was available with WiFi & Location turned off in Android settings but never be able to give me coordinates (the Get Current Reading button of the demo just logs "Current Reading" rather than actual details). http://lessons.livecode.com/m/4069/l/30379-how-do-i-get-the-location-and-use-the-digital-compass --Andrew Bell ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Posting to Facebook?
Andre's Facebook library still works, but was a bear to track down about 2 years ago when I bought and implemented it. It seems other than references in the Wayback Machine, this library has vanished from the interwebs. Social sharing seems common enough that there would be a reliable cross-platform LC widget available for the major services (Facebook, Twitter, Instagram). I've been using a mixture of Andre's library (aagFacebookMobileLib.livecode) and Monte's mergExt to handle Facebook posts on my mobile app. aagFacebookMobileLib took care of Android users and mergSocial worked for iOS until version 11 removed system hooks for social media. Now I still use aagFacebookMobileLib for Android and mergPop for iOS (which gives the ability to share via other methods like email/text/etc.). I have yet to find a reliable method to allow dynamic end-users to post to their own Twitter accounts via mobile app (though I can tweet to an account that is hard-coded into the app). --Andrew Bell I couldn't find Andre's Facebook Lib on his site - has anyone sorted out POSTing images etc to FB? cheers Alan ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Internet library and LC9
Depending on your license level, tsNet may not be available. I was recently looking for a way to force clear browser cache in LiveCode browser widget (still can't figure it out, even trying the "?seconds" parameter discussed on the list) and discovered the LOAD command in LiveCode. Where PUT is blocking, LOAD is not so your code should be able to proceed while waiting for a callback. --Andrew Bell I am transitioning some applications that were built as standalone under? LC6.7.11 to LC 9.0.0. In most cases, the migrations are going well with mostly appearance issues (due to different default fonts and such). This week, I have encountered a functional issue. An app (stack) I have, as part of the startup sequence, sends a message that fetches a small text file on a server, essentially "put URL tURL into tVar". This was working fine under LC6.7.11 with no noticeable delay on both Window (8.1) and OSX (Mavericks). Now, when built under LC9.0.0, under OSX, the internet action takes many seconds to respond - sometimes as much as 30 seconds or more. Nothing has changed on the OSX box. This is a pure LC6 to 9 changes issue. Testing suggests that it is the first internet call under OSX takes a long time and then all subsequent calls are as speedy as you would expect. I know LC9 uses tsNet vs the old Internet library. Does tsNet take some time to initialize under OSX? or is there some call you need to make to pre-initialize tsNet? Anyone run into anything like this and have any suggestions or work-arounds? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: NavBar widget in LC9.0.0
Both of these work for me in 9.0.0rc1 and 9.0.0 on 10.13.3 (using the default widget with the 4 items): set the hilitedItem of widget "Navigation Bar" to 4 set the hilitedItemName of widget "Navigation Bar" to "search" By some chance do you have more than 1 navbar widget which is unintentionally sucking up the message path? --Andrew Bell Date: Wed, 23 May 2018 22:38:54 -0700 From: "proth...@earthlearningsolutions.org" Subject: Re: NavBar widget in LC9.0.0 I?ll make a test stack. But the problem is, I click on item 1. Item 1 is hilited. Then I run a script with: Set the hiliteditem of widget ?navbar? to 3 Item 3 does not hilite, but if I do, in script: Put the hiliteditem of widget ?navbar? into theItem .. theItem is set to 3, but the widget?s hilite (the color of the item) stays on item 1. So what I?m unable to get to work is the hilite color move to item 3. I?m using LC9.0.0 on OS X 10.13 I?ll try it again in the morning, perhaps make a test stack. Or maybe it will just go away. Best, Bill ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Access image EXIF info on mobile
Didn't bother to test on Android since mergAV isn't supported, but I can confirm the crashes on simulated devices. When tested on physical devices, the stack never crashed but didn't always work depending on the source of the image. Even images from the same device didn't always work, which makes me think there was a change somewhere in how Apple wrapped the metadata. For instance: photo taken today didn't show EXIF, but photo taken on same phone 6 months ago does (don't remember what OS that would have been, but almost certain it was different from current version). I updated your bug report with my findings from 2 real and 2 simulated devices using your test stack. One caveat is my simulated devices run 10.2 but my physical devices are running 11.x --Andrew Bell Date: Fri, 1 Jun 2018 00:50:29 + From: Alan To: "use-livecode@lists.runrev.com" Subject: Access image EXIF info on mobile Message-ID: Content-Type: text/plain; charset="iso-8859-1" I have made a test stack to access EXIF information on both Android and iOS and submitted it under bug 21322: https://quality.livecode.com/show_bug.cgi?id=21322 There is a problem (at least on the simulator) that causes a crash currently, hence my bug report. Hopefully the sample stack is useful for others and if anyone could test it on an iOS (or Android) device could you please comment on the bug report as to success or failure? Thanks! cheers Alan ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Close nodes in Tree View widget
I'm working with the Tree View widget and have found that leaf nodes stay open even after the arrayData has changed. For example, if I click on leaf node 2 and 4 to open them up for further inspection but then load new arrayData those same leaf nodes are already expanded with the new data. Is there a way via code to close all the leaf nodes, or to restrict the widget so only 1 node can be open at a time? --Andrew Bell ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Close nodes in Tree View widget
Setting the arrayData to EMPTY acts the same as setting the arrayData to some other array: the open nodes remain open. I even tried changing the number of elements in the array to something as low as 1 but it still remembered what nodes had been open when setting the arrayData to something with more elements. There are no properties in the dictionary that describe this type of operation. The closest I could find was hilitedElement but that doesn't actually open or close a node leaf. In fact, if you set the hilitedElement to a node that isn't open it will hilite the next node that is open instead. (bug?) This isn't critical for this project as it is just an internal tool that only I use, but the only workaround I could come up with is to delete the widget and then create the widget again via script along with all the attributes. --Andrew Bell Date: Wed, 13 Jun 2018 23:02:52 +0100 From: Alex Tweedly Subject: Re: Close nodes in Tree View widget I can't try it out right now - but would it be any good to set the arraydata to empty, and then load the new values you want ? That might (effectively) delete and recreate the relevant nodes, and thereby reset the status of the leaf nodes. Alex. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Close nodes in Tree View widget
Thank you! https://quality.livecode.com/show_bug.cgi?id=21361 --Andrew Bell Quoting Brian Milby : Could you open a bug report/enhancement request for this? I’ll see what I can do about a PR targeting 9.1 release. I can think of several ways to address the situation. Easiest would be to reset the array that handles what is expanded when the data array is changed. Would not be hard to add a separate handler to collapse all nodes. Once done, you could pull the updated source and compile/use locally until it makes it into a release. Thanks, Brian On Jun 14, 2018, 8:43 AM -0500, Andrew Bell via use-livecode , wrote: Setting the arrayData to EMPTY acts the same as setting the arrayData to some other array: the open nodes remain open. I even tried changing the number of elements in the array to something as low as 1 but it still remembered what nodes had been open when setting the arrayData to something with more elements. There are no properties in the dictionary that describe this type of operation. The closest I could find was hilitedElement but that doesn't actually open or close a node leaf. In fact, if you set the hilitedElement to a node that isn't open it will hilite the next node that is open instead. (bug?) This isn't critical for this project as it is just an internal tool that only I use, but the only workaround I could come up with is to delete the widget and then create the widget again via script along with all the attributes. --Andrew Bell > Date: Wed, 13 Jun 2018 23:02:52 +0100 > From: Alex Tweedly > Subject: Re: Close nodes in Tree View widget > > I can't try it out right now - but would it be any good to set the > arraydata to empty, and then load the new values you want ? That might > (effectively) delete and recreate the relevant nodes, and thereby reset > the status of the leaf nodes. > > Alex. > ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Navbar widget limitations
I've had growing frustration with adding items and changing itemNames of new items in the Navigation Bar widget. Today I finally took the time to attempt and recreate/troubleshoot the issue which led me to filing two bug reports. One major limitation I discovered was that the widget only seems to support up to 9 items. When a 10th item gets added, the correlation between item and itemName seems to disappear. My suspicion is that the itemNames are being sorted alphabetically rather than numerically so once you hit double-digits the order breaks down. Can any Navbar users confirm or comment on my findings, or offer some sort of workaround? https://quality.livecode.com/show_bug.cgi?id=21379 [10 items issue] https://quality.livecode.com/show_bug.cgi?id=21378 [item name issue] --Andrew Bell ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
iOS 12 compatibility
I know the devs are working on including the new version of Xcode, but has anyone tried to run their apps in the iOS 12 beta? I installed it on my iPad and haven't had ANY luck. Every app that I've made (app store official & ad hoc install) either crashes or goes to black screen on iOS 12. I didn't test iOS 10 before it was launched and ended up making a mad dash to modify and recompile my apps because they stopped working with something that Apple cooked up (iOS 9 was my first app release). iOS 11 was a smooth transition for me, and iOS 12 may end up being the same, but I'm curious if anyone has has tested their work. --Andrew Bell ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: iOS 12 compatibility
We're far enough out from the iOS 12 launch that I wasn't overly concerned, but it's open for public beta now so I'm sure to get some support emails from bleeding-edge technologists. LC 9.0 macOS 10.11.5 Xcode 8.2 --Andrew Bell Quoting panagiotis merakos : Hi Andrew, oh what fun! I will install iOS 12 beta in one of our office devices and investigate tomorrow. After a quick google search it seems that other non-LC apps crash on startup on iOS 12 beta, so probably Apple has changed something. BTW what version of LC / MacOS/ Xcode did you use to build the standalone(s)? Best, Panos -- On Tue, Jun 26, 2018 at 5:11 PM, Andrew Bell via use-livecode < use-livecode@lists.runrev.com> wrote: I know the devs are working on including the new version of Xcode, but has anyone tried to run their apps in the iOS 12 beta? I installed it on my iPad and haven't had ANY luck. Every app that I've made (app store official & ad hoc install) either crashes or goes to black screen on iOS 12. I didn't test iOS 10 before it was launched and ended up making a mad dash to modify and recompile my apps because they stopped working with something that Apple cooked up (iOS 9 was my first app release). iOS 11 was a smooth transition for me, and iOS 12 may end up being the same, but I'm curious if anyone has has tested their work. --Andrew Bell ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Mastering TS Net
Like Jacque mentioned, I don't think you need to bother with tsNet for local files since they should be almost instantly loaded. I too struggled with tsNet when I first tried to implement it, but this website helped me more than the LiveCode pages: https://www.techstrategies.com.au/tsnet-resources/ The problem you are encountering is that you can only have one unique ID referenced at a time (first parameter). If you try to make another call using that ID before the first call is returned then you'll get an error. Once a call with the ID has been finished (successful or not), that ID is recycled and available for use again. The documentation doesn't explain well (in my initial understanding) that this doesn't have to be "1" or even a number. I experimented with random(1) as my pID before encountering that same "ID already in use" error and discovered that for most of my uses I could just hard-code a text based ID that made more sense to me when troubleshooting like "get new image" or "check for updates" or even some variable with a unique value (like your tFileName). --Andrew Bell Date: Sun, 1 Jul 2018 15:19:34 + From: Sannyasin Brahmanathaswami To: How LiveCode Subject: Mastering TS Net Message-ID: Content-Type: text/plain; charset="utf-8" I really need to get my head around TSNet, so began experiments. This is the documentation for tsNetGetFile " local tHeaders, tResult put tsNetGetFile("1", "/path/to/downloaded/file.dat", \ "ftp://user:p...@ftp.example.com/file.dat";, tHeaders, \ "transferComplete") into tResult on transferComplete pID, pResult, pBytes, pCurlCode local tData, tHeaders if pCurlCode is not 0 then answer tsNetRetrError(pID) else a nswer "File has been downloaded" end if tsNetCloseConn pID end transferComplete # but my first attempt to "get it" ... ran into this error. Are there any good lessons on all TSNet functions? I am not looking forward to wading into this blind as a bat. # variable watcher tResult --tsneterr: ID already in use what is strange is this, the IDE gives the error even before tracing the mouseup. So I did not even get off home plate. local tHeaders, tResult on mouseup # put a break here... the IDE show an error *before* stepping into the next statement # I can't even close the connection with: tsNetCloseConn "1" put empty into tResult put fld aURL into pURL put empty into fld "fldHTTPHeader" put empty into fld "tHTMLfield" set the itemDel to "/" put item -1 of pURL into tFileName put ("~/Desktop/"&tFileName) into tLocalFile put tsNetGetFile("1",tLocalFile,pURL,tHeaders,"transferComplete") into tResult -- put libURLLastHTTPHeaders() into fld "fldHTTPHeader" end mouseup on transferComplete pID, pResult, pBytes, pCurlCode if pCurlCode is not 0 then answer tsNetRetrError(pID) else answer "File has been downloaded" put tHeaders into fld "fldHTTPHeader" end if tsNetCloseConn pID end transferComplete BR Date: Sun, 01 Jul 2018 13:00:44 -0500 From: "J. Landman Gay" To: How to use LiveCode Subject: Re: Mastering TS Net Message-ID: <16457010ce0.285b.5e131b4e58299f54a9f0b9c05d4f0...@hyperactivesw.com> Content-Type: text/plain; format=flowed; charset="us-ascii" Does TSNet even work with local files? For local files use the read/write commands or "get/put url". With a commercial license you shouldn't need to deal with the lower level functions for internet communication. The basic put, post, and get commands should do it. -- Jacqueline Landman Gay | jac...@hyperactivesw.com HyperActive Software | http://www.hyperactivesw.com On July 1, 2018 10:21:38 AM Sannyasin Brahmanathaswami via use-livecode wrote: tResult --tsneterr: ID already in use what is strange is this, the IDE gives the error even before tracing the mouseup. So I did not even get off home plate. local tHeaders, tResult on mouseup # put a break here... the IDE show an error *before* stepping into the next statement # I can't even close the connection with: tsNetCloseConn "1" put empty into tResult put fld aURL into pURL put empty into fld "fldHTTPHeader" put empty into fld "tHTMLfield" set the itemDel to "/" put item -1 of pURL into tFileName put ("~/Desktop/"&tFileName) into tLocalFile put tsNetGetFile("1",tLocalFile,pURL,tHeaders,"transferComplete") into tResult -- put libURLLastHTTPHeaders() into fld "fldHTTPHeader" end mouseup on transferComplete pID, pResult, pBytes, pCurlCode if pCurlCode is not 0 then answer tsNetRetrError(pID) else answer "File has been downloaded" put tHeaders into fld "fldHTTPHeader" end if tsNetCloseConn pID end transferComplete BR ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, u
Re: iOS 12 compatibility
Had my first customer complaint about the app not working on their device running the iOS 12 beta. Luckily I was able to point to a blog post about how Fortnite also crashes under iOS 12 and explained how their development budget is WAY larger to buy some time ;) Has the mothership had a chance to investigate this and/or should I submit a report to bugzilla? --Andrew Bell Date: Tue, 26 Jun 2018 17:45:42 +0100 From: panagiotis merakos To: How to use LiveCode Cc: and...@midwestcoastmedia.com Subject: Re: iOS 12 compatibility Message-ID: Content-Type: text/plain; charset="UTF-8" Hi Andrew, oh what fun! I will install iOS 12 beta in one of our office devices and investigate tomorrow. After a quick google search it seems that other non-LC apps crash on startup on iOS 12 beta, so probably Apple has changed something. BTW what version of LC / MacOS/ Xcode did you use to build the standalone(s)? Best, Panos -- ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Mobile Launch Camera
mobilePickPhoto will launch the device camera, but not actually open the OS based Camera app. There is a nice lesson available @ http://lessons.livecode.com/m/4069/l/30490-how-do-i-capture-images-in-livecode-mobile --Andrew Bell From: Dan Friedman To: "use-livecode@lists.runrev.com" Subject: Mobile Launch Camera Message-ID: <6baf92b1-5213-4c1f-86b2-f6f860d6e...@clearvisiontech.com> Content-Type: text/plain; charset="utf-8" Greeting! Is it possible to launch the camera app on mobile? I have a button in an app that when tapped, should launch the [native] camera app and select ?Video?. Another button should launch the camera app and select ?Photo?. Is that possible? If so, how? Perhaps some variation of the launch command? I am aware of mobilePickPhoto and mobilePickMedia. I don?t want to import content, I want to physically open the camera app on the user?s device. Thank you in advance, -Dan ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Apple's 30%--anyway around it?
One method is to offer things for sale outside of things for sale to the outside world that then unlock content in your app. I have a client that a made an app for that is free to download, but functionally crippled without an existing account from them (login credentials unlock access to certain desirable features). They sell their service online from their website (using wooCommerce), then their customers download the free app to enter their account credentials giving them access to the goodies. This sort of works as a DRM since the goodies can't be procured or shared outside of the app. End user is paying for a privilege, but that privilege is really only available from inside the app. --Andrew Bell From: "Linda Miller, DVM" <1anml...@gmail.com> Subject: Apple's 30%--anyway around it? Message-ID: <836f8096-648b-417a-bd1b-bf39e7a01...@gmail.com> Content-Type: text/plain; charset=us-ascii I used to create apps and ebooks years and years ago for PDAs. The only reason that I closed my business was Apple. Let me explain. I would contract with authors of books to publish an electronic version of their book. This was a new thing back then. I also had a website where I sold the apps and eBooks. I would get about 15% of the sale of every copy of books that I was publishing for Palm's and Pocket PC's. Then came the iPhone and Apple's app store. They charged 30% for the sale of everything. I was not making that much and I was the creator of the apps and the publisher of the eBooks. I could not make it with those amounts. There was a way around this that I could see for the eBooks. SkyScape was a publisher of medical eBooks while mine were for veterinarians. They provided a free app. The customer would purchase eBooks on SkyScape's website. The customer would install the app on their device through Apple's AppStore and then either on their computer or their iPhone, they could go to SkyScape.com and purchase a book. Within the app, they had instructions for how to download their purchase. There was then a registration number depending on the device's IMEI(??) number or something that was specific to that customer. SkyScape did not have to pay Apple the 30%. They were selling the eBooks outside of the Apple environment. I could have had a great business and it would have continued to this day. I spent a LOT of time and money developing a similar app. It was great. It was primarily an eBook reader but there were other functions in the app as well. It could read .txt, ePub, .pdf, HTML, and maybe others, I don't remember. The steps for purchasing, installing and registering eBooks was similar to what SkyScape had done. No matter how many changes I made, Apple kept refusing the app because I was selling the eBooks outside of their AppStore. SkyScape's business continues. Mine, I closed. Our businesses were not competitors. I even sold a few of their products through my website. I would buy a certain number at a discount and sell them at the regular price to the customer. I never could figure out how to get around whatever it was that made Apple not accept my free app on the AppStore and yet a similar product they are allowing to this day. I need help in figuring this out. I have found LiveCode that I can use for development of apps on the different platforms. I don't have to learn Xcode again. But, I need to try to decide what to start developing. Any suggestions? If you want to see the process, if I have not explained it well enough, download the SkyScape app for Android or iOS to your device (I have not done it recently). There should be some free eBooks to install either through the app or on their website. This may give you an idea. Linda ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: iOS 12 compatibility (panagiotis merakos)
Based on the fact that my apps are still crashing on load in iOS 12 beta 4 (16A5327f) I can only assume that Fortnite was NOT written in Livecode ;) --Andrew Bell From: panagiotis merakos To: How to use LiveCode Subject: Re: iOS 12 compatibility Message-ID: Content-Type: text/plain; charset="UTF-8" BTW Fortnite app seems to have suffered from a similar problem on iOS 12, and a user on Reddit said that this was fixed on iOS 12 beta 4. Fingers crossed :) Best, Panos -- On Wed, Jul 18, 2018 at 8:37 AM, panagiotis merakos wrote: Hi all, iOS 12 beta 4 is out today. I will install it on our test device and have a play tomorrow. If anyone tries it sooner, please post your results here :) Best regards, Panos -- ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: iOS 12 compatibility
Yes, enabling acceleratedRendering in the preOpenStack does allow the app to launch in iOS 12! I was not able to actually install the app directly to the device from LiveCode (got a generic "Error" message) so I had to uninstall 12, install the app under 11, then upgrade back to 12 (public beta 3) to test. I now remember why I disabled acceleratedRendering in the first place: 1- it adds a quick black screen during the launch of the app (between the openStack and openCard it seems) 2- it breaks the navigation system that I implemented to get from card to card (animation of a group that appears from off card) I can live with #1 for now and will start plotting a work around for #2 just so I can get an update out the door. Thanks for looking into this! --Andrew Bell From: panagiotis merakos To: How to use LiveCode Cc: and...@midwestcoastmedia.com Subject: Re: iOS 12 compatibility (panagiotis merakos) Message-ID: Content-Type: text/plain; charset="UTF-8" Hi all, It seems the crash is related to screen updates, and adding this to the preopenstack handler prevents the app from crashing: Could you please confirm? Best, Panos -- PS: We are still investigating. On Thu, Jul 19, 2018 at 9:51 AM, panagiotis merakos wrote: Thanks Andrew. I just upgraded the test device to iOS 12 beta 4 and I confirm apps still crash on startup. Sigh :( Best, Panos -- On Wed, Jul 18, 2018 at 6:28 PM, Andrew Bell via use-livecode < use-livecode@lists.runrev.com> wrote: Based on the fact that my apps are still crashing on load in iOS 12 beta 4 (16A5327f) I can only assume that Fortnite was NOT written in Livecode ;) --Andrew Bell From: panagiotis merakos To: How to use LiveCode Subject: Re: iOS 12 compatibility Message-ID: Content-Type: text/plain; charset="UTF-8" BTW Fortnite app seems to have suffered from a similar problem on iOS 12, and a user on Reddit said that this was fixed on iOS 12 beta 4. Fingers crossed :) Best, Panos -- On Wed, Jul 18, 2018 at 8:37 AM, panagiotis merakos wrote: Hi all, iOS 12 beta 4 is out today. I will install it on our test device and have a play tomorrow. If anyone tries it sooner, please post your results here :) Best regards, Panos -- ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: iOS 12 compatibility
I've been using 9.0.0. When using 9.0.1rc1 the black flash (issue #1) disappears but my navigation breaks (issue #2) when I enable acceleratedRendering. When using 9.0.0 acceleratedRendering messes up all sorts of stuff like my navigation and has a lot of flashing black space, not just at app launch. --Andrew Bell -- @Andrew thanks for checking. Which LC version do you now use? We have fixed *a lot* of acceleratedrendering-related issues in LC 9.0.1- RC-1, so issue #2 might be already fixed. Best, Panos -- On Wed, Jul 25, 2018 at 2:11 PM, Andrew Bell via use-livecode wrote: Yes, enabling acceleratedRendering in the preOpenStack does allow the app to launch in iOS 12! I was not able to actually install the app directly to the device from LiveCode (got a generic "Error" message) so I had to uninstall 12, install the app under 11, then upgrade back to 12 (public beta 3) to test. I now remember why I disabled acceleratedRendering in the first place: 1- it adds a quick black screen during the launch of the app (between the openStack and openCard it seems) 2- it breaks the navigation system that I implemented to get from card to card (animation of a group that appears from off card) I can live with #1 for now and will start plotting a work around for #2 just so I can get an update out the door. Thanks for looking into this! --Andrew Bell ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: acceleratedRendering
Panos asked me to file a bug report on what I was experiencing, but I haven't been able to nail down the formula yet. Simply enabling acceleratedRendering would allow my app to launch, but things weren't moving or responding as they should have. It does seem like some mouseUp messages are getting ignored, but I'm also dealing with screen redraw issues when moving objects and groups in time as well as using mobileControls (a side navigation that opens up from off screen and hides mobile browser). I'm currently redesigning the navigation so I can get an update out the door quickly as users are already complaining about iOS 12 compatibility. You've given me some insight into the possible problem so I can try to work out a proper bug report formula. --Andrew Bell From: Sannyasin Brahmanathaswami To: How to use LiveCode Subject: Re: acceleratedRendering Message-ID: <5a86d6a0-88c9-4d00-b7d5-749568f74...@hindu.org> Content-Type: text/plain; charset="utf-8" FWIW... acceleratedRendering in causing trouble on Android, 9.0.1. RC 1. Disables "touch" messages in some contexts... Bug report is in, confirmed. I've struggling for 2 Years with this (!) Now on iOS? Yikes! I am sure it is a priority with team. Keep fingers crossed. BR ?On 8/1/18, 4:07 AM, "use-livecode on behalf of Randy Hengst via use-livecode" use-livecode@lists.runrev.com> wrote: Is there some element that goes hand-in-hand with acceleratedRendering that I?ve overlooked? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: iOS 12 compatibility
I've been trying to figure out the exact recipe and/or a workaround for this problem and I can't. From the testing that I've done, items/groups are in fact moving but the screen is not being redrawn. Can I send my problem stack for someone to take a look at without posting it online? --Andrew Bell Quoting panagiotis merakos : Ok, one less issue to tackle then :) If you could file a bug report with a reproducible recipe (and ideally a sample stack), this will help us identify and fix the problem in an upcoming release. Best, Panos -- On Wed, Jul 25, 2018 at 5:13 PM, wrote: I've been using 9.0.0. When using 9.0.1rc1 the black flash (issue #1) disappears but my navigation breaks (issue #2) when I enable acceleratedRendering. When using 9.0.0 acceleratedRendering messes up all sorts of stuff like my navigation and has a lot of flashing black space, not just at app launch. --Andrew Bell -- @Andrew thanks for checking. Which LC version do you now use? We have fixed *a lot* of acceleratedrendering-related issues in LC 9.0.1- RC-1, so issue #2 might be already fixed. Best, Panos -- On Wed, Jul 25, 2018 at 2:11 PM, Andrew Bell via use-livecode < use-livecode@lists.runrev.com> wrote: Yes, enabling acceleratedRendering in the preOpenStack does allow the app to launch in iOS 12! I was not able to actually install the app directly to the device from LiveCode (got a generic "Error" message) so I had to uninstall 12, install the app under 11, then upgrade back to 12 (public beta 3) to test. I now remember why I disabled acceleratedRendering in the first place: 1- it adds a quick black screen during the launch of the app (between the openStack and openCard it seems) 2- it breaks the navigation system that I implemented to get from card to card (animation of a group that appears from off card) I can live with #1 for now and will start plotting a work around for #2 just so I can get an update out the door. Thanks for looking into this! --Andrew Bell ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Tutorial for MAP widget
Like this? https://livecode.com/docs/9-0-0/components/map-widget/ I will be talking a little about my Map widget implementation during a LC Global talk next month. --Andrew Bell From: Klaus major-k To: How to use LiveCode Subject: Tutorial for MAP widget Message-ID: Content-Type: text/plain; charset=us-ascii Hi all, could someone (the mothership?) please create a little tuorial for the new MAP widget? This is really not self-explaining. How to let the user create a new marker etc... Thanks a lot! Best Klaus -- Klaus Major http://www.major-k.de kl...@major-k.de ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Regaining IDE Efficiency: Property Inspector
This one escaped me at first as well, but if you click on the sprocket widget in the upper-right of the PI you have the option for "Header/Footer Size" to grow and shrink the tabs. I'm not sure what "Footer" is referring to. --Andrew Bell PI window and tabs: - The PI tabs (Basic, Contents, Custom...) are one thing that is almost more efficient now than in 6. Good! But still needs improvement. I say "almost" efficient because the little tab buttons are way too small - about 11x10 px on my screen. That's takes more effort and concentration to click, and these are your highest-traffic PI controls. Even 16x16 would be an improvement. Unless there's already a setting for this that I missed. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Tutorial for MAP widget
Klaus- After further inspection I agree with you that this widget needs a proper tutorial. I was looking at the module itself trying to find some undocumented features (like a polygon or circle overlay instead of just a polyline) and came up empty handed. After looking at the W3Schools tutorial @ https://www.w3schools.com/graphics/google_maps_overlays.asp I noticed that you could create multiple polyline segments using the native Google Maps API. The demo code in the LC 9.0.0 docs (not the dictionary, but the doc referenced in my previous post) uses the following example: put "55,-3,55,-5" into tPolylines["line"]["coordinates"] It isn't documented, but this is a comma delimited list of lat/long value pairs (also separated by a comma) to be used as points for connecting line segments. So in the provided example a line segment is drawn from "55,-3" to "55,-5" on the map. But you can draw a triangle between Edinburgh (55,-3), New York (40,-74), and Cairo (30,31) then back to Edinburgh with this: put "55,-3,40,-74,30,31,55,-3" into tPolylines["line"]["coordinates"] The closed triangle needs 4 sets of coordinates, not just 3, so it can return to the "home" point. Still not quite the polygon overlay that the Google Maps API provides, but a neat option that wasn't evident by reading the current documentation. It's also not explicitly documented that the "color" property will accept a RGBA value so the following example provides an orange-ish overlay with a ~39% opacity (100 / 255): put "228,128,0,100" into tPolylines["line"]["color"] In fact, the dictionary reference for polylines only shows RGB as an example. This is an extremely powerful widget... if you know what it is actually doing. --Andrew Bell From: Klaus major-k To: How to use LiveCode Subject: Tutorial for MAP widget Message-ID: Content-Type: text/plain; charset=us-ascii Hi all, could someone (the mothership?) please create a little tuorial for the new MAP widget? This is really not self-explaining. How to let the user create a new marker etc... Thanks a lot! Best Klaus -- Klaus Major http://www.major-k.de kl...@major-k.de ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: fullscreenmode and rect of a substack on mobile device ?
From: Brian Milby To: How to use LiveCode Subject: Re: fullscreenmode and rect of a substack on mobile device ? Message-ID: In the end, I guess I need to get an Android device so I can start testing. My go-to source for Android test devices is the local grocery store so I can buy a pre-paid phone (AKA a burner). It's not the latest/greatest Pixel or Galaxy, but you'll find a variety of devices with different sized screens and OSs ranging from $20-$100. You never need to register them, just turn on the wi-fi and begin testing. My other source is the hand-me-down my wife gives me every 2 years when she renews her contract. I buy my iPhones outright and keep my old models to run a variety of OSs. --Andrew Bell ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Datagrid Scrolling
I agree, and my clients have confirmed, that scrolling with dg2 is jerky compared to dg1. This isn't as noticeable when scrolling at a fast rate, but very evident at slower speeds. https://quality.livecode.com/show_bug.cgi?id=20910 As Sannyasin mentioned, I can't go back to LC8 due to lack of iOS12 compatibility (smooth scrolling is important, but not at the cost of the app not even launching). --Andrew Bell From: hlowe Subject: Re: Datagrid Scrolling Message-ID: <1535212927416-0.p...@n4.nabble.com> I agree. There has been a very significant deterioration in datagrid scrolling performance since DG2 and LC9 were introduced. Based on feedback from user testing we have delayed release of an important iOS app update because DG scrolling was perceived to be unacceptably slow and visually jerky. The currently released version of the app uses LC8, DG1 and Monte's mergDatagridScroller code and it scrolls very smoothly. DG2 is a wonderful update with many exciting new features. I do hope that the scrolling performance issue can be addressed soon, so that we can take advantage of the update. Henry Ascriva Health Informatics https://www.ascriva.com ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: iOS 12 compatibility
Thank you Livecode crew for patching Bug 21396 that required acceleratedRendering to be TRUE in order for an app to launch in iOS 12! Word of advice to developers as they submit their new builds to Apple (because if you don't, and you don't have acceleratedRendering enabled in your stack, your app won't launch in the new operating system): don't mention the fact that the new OS broke the existing app. In my "What's New in This Version" text, I mentioned "added iOS 12 compatibility" which apparently is a big no-no. My latest submission got rejected for breaking PLA 2.3 which states "Apple may provide You with pre-release versions of the Apple Software or related services that constitute Apple Confidential Information and are subject to the confidentiality obligations of this Agreement." So Apple released a public beta, that beta broke developer software as reported by public beta users, but we can't speak of such things. *eye roll* Luckily this is just a metadata rejection that doesn't require a new build. Just thought I'd share my experience to help save someone else the embarrassment of breaking your NDA with a company who has a $1T market cap. --Andrew Bell ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
View manifest in compiled Android app
I just had a mobile app submission rejected from Google Play for "Violation of Device and Network Abuse policy" which is an extremely vague category of issues. Based on some StackOverflow research, it seems that a common fix to this is to ensure that the following line appears in your manifest: I've found the default manifest in Tools/Runtime/Android/Manifest.xml but can't find a way to see the manifest built when my stack is compiled (like I can locate Info.plist in an iOS .ipa). Does anyone know how I can see what is in my compiled manifest, or better yet, have any indication as to what would trigger that violation? Since I last submitted a build of this app, I have switched some network calls over from libURL to tsNET and am using 9.0.1rc3 so the app is being built against the proper SDK and targeted to the appropriate API level. Previous submission would have likely been some pre-release 9.0.0 build based on the date of approval. Nothing else has changed network-wise other than an additional instance of a mobileBrowser (of which there were already 2 before), and there are no in-app ads or YouTube videos being played (which seems to be one of the major triggers for this type of rejection), and I'm not using the Map widget (which would use Google APIs). I thought that looking at the manifest file for this app would quickly allow me to determine if a quick patch can be done or if I need to dig deeper for the root of the problem. --Andrew Bell ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: iOS 12 compatibility
From: Randy Hengst To: How to use LiveCode Subject: Re: iOS 12 compatibility Message-ID: <0be15129-2652-43a4-aecc-00498689e...@mac.com> Content-Type: text/plain; charset=us-ascii Hi Andrew, What version of LC and Xcode combination did you use for your build? be well, randy www.classroomFocusedSoftware.com I had previously (for almost 2 years?) been using Xcode 8.2 on macOS 10.11.x which worked with every version of LiveCode that was current or beta at the time (including 9.0.1rc3). But when I went to submit to Apple, they rejected the Xcode version I compiled against so I had to upgrade to 10.12.x so I could use Xcode 9.2. Compiled with LC 9.0.1rc3 Business. My initial submission (which got the metadata rejection) was reviewed in less than 2 days. Looking at the current trend, I'll be waiting all week to get this minor wording change approved according to http://appreviewtimes.com/ (a GREAT little tool). --Andrew Bell ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Remote Debugger Anomalies
- The stack that caches object scripts is not being cleaned up properly between debugging sessions. This would mean that you would see the old script but what would be executing would be the new script. One way to test this might be to move a breakpoint statement from one line to another and see what line is highlighted in the debugger. This is my vote for what is happening. I have noticed numerous times that stepping through lines I could see things happening in the standalone that were NOT the highlited line of code in the script editor at the time. For instance, a blank line (for readability of code) would execute some other line of code that was now 2 lines down due to a recent change in the script. --Andrew Bell ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: App Dead on iOS 12
I originally reported the iOS 12 bug (that doesn't show up in QC when you search for "iOS 12" but can be found @ https://quality.livecode.com/show_bug.cgi?id=21396) back in July, which was fixed in 9.0.1rc2. I no longer see that black screen or crash on iOS 12 (betas or release) when building with 9.0.1rc2/rc3/gm and am NOT setting acceleratedRendering to TRUE. There were still several other hoops that I needed to jump through to get my updated app approved. Apple made changes, which forced LiveCode to make changes, which forced me to make changes. - New version of macOS (10.11.x --> 10.12.x) - New version of Xcode. (8.2 --> 9.2) - New procedure for preparing file for upload using Application Loader 3.0 (always used this version of Application Loader, but never had to do this before: http://lessons.livecode.com/m/4069/l/33064-how-do-i-submit-an-ios-app-to-the-app-store ) - Add app icon via Standalone Builder (LiveCode > File > Standalone Application Settings > iOS > Icons > AppStore). Previously I could submit the icon via iTunesConnect (which is now AppStoreConnect). All this was on top of creating a custom plist because I use Location Services (previously I was modifying the plist template in the LiveCode application package itself, but have to remember to modify that before building each different app, so now I'm using this method: http://lessons.livecode.com/m/4069/l/881992-creating-a-custom-plist) My app was submitted, rejected (for mentioning iOS 12 compatibility in my release notes because it wasn't "official" yet), submitted again, accepted, and now published (though my screenshots aren't up-to-date yet). https://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=1134962219&mt=8 --Andrew Bell From: Terry Judd To: How to use LiveCode Subject: Re: App Dead on iOS 12 Message-ID: <35b1bf39-38a6-4df2-a6f9-dc4c73680...@unimelb.edu.au> Content-Type: text/plain; charset=UTF-8 Hi Monte - I've just fired up my other MacBook that is running LC 9.0.1 in combo with Xcode 9.4.1 under OSX 10.13.5 and I see the same thing as Dan. App starts up, shows the splash screen and then immediately quits. Also, still no app icon - and I'm pretty sure I installed those extras along with Xcode as I did it fairly recently. Regards, Terry... ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: iOS 12 and SDK
I ran into the same problem: had to upgrade from Xcode 8.2 to 9.2, which required that I upgrade from macOS 10.11 to 10.12. You can download the update from Apple through the App Store @ https://support.apple.com/en-us/HT208202 but will need to log into the Apple developer site to download the older version of Xcode since they just released 10. --Andrew Bell Date: Wed, 19 Sep 2018 06:57:07 +0200 From: Ludovic THEBAULT To: How to use LiveCode Subject: Re: iOS 12 and SDK My app (built with Livecode 8) also crash on IOS 12. So, i built it with LC 9.01 and work on my device on iOS 12. I submitted it, but Application Loader rejected it : ERROR ITMS-90725: "SDK Version Issue. This app was built with the iOS '10.2' SDK. All iOS apps submitted to the App Store must be built with the iOS '11.0' SDK or later, included in Xcode [9.0] or later. Please update Xcode and rebuild your app. ? But i have only Xcode 8.2.1 and SDX 10, i am under MacOS X 10.11 and cannot upgrade. Any solution other than bought a new mac ? Unfortunately not. Apple require apps submitted to the App Store to be built against 11+ now which means the minimum Xcode version you can use is Xcode 9.2 under macOS 10.12.6. Ok, thanks Apple :) I?ll try to upgrade my OS to macOS 10.12, i read somewhere it could be possible. ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
mergLA for Mac
I created an admin backend app for a client so they can manage data for their frontend app. This backend, based off client request, is running on macOS/Windows/iOS. The desktop versions use a password for authenticating access but the iOS deployment uses Touch/Face ID for authentication via Monte's extremely easy to use mergLA external. Recently this client upgraded their laptop to a MacBook Pro that also supports Touch ID and asked if the same fingerprint technology could be implemented in the macOS build. I was blissfully unaware that this feature even existed on that platform, but apparently has been available since the 2016 model year. I know several of the other merg externals utilize the same/similar underlying framework so they work on both macOS and iOS. Is this just a matter of recompiling the external or is there a deeper change that would need to be made to unlock this? https://developer.apple.com/documentation/localauthentication --Andrew Bell ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Tab between fields on mobile device
I'm trying to tab from field to field in a mobile app when pressing the TAB key on a bluetooth keyboard, but having no luck in an iOS app. My "on tabKey" code works fine in the IDE but not on the iPad. After closer inspection of the dictionary, I discovered that the tabKey handler is NOT supported by iOS. My attempt to use keyDown instead is thwarted because according to that dictionary entry: "If the key pressed is the Return, Tab, Backspace, Delete, or Enter key, an arrow key, or a function key, no keyDown message is sent. Instead, the returnKey, tabKey, backspaceKey, deleteKey, enterKey, arrowKey, or functionKey message is sent." This led me to try rawKeyDown. When running in IDE this gives me a proper key code (65289) but when running in iOS I'm returned a zero. on rawKeyDown tKeyName ## THIS ATTEMPTS TO MAKE THE tabKey CODE MOBILE FRIENDLY if tKeyName = 0 or tKeyName = 65289 then tabKey else pass rawKeyDown end if end rawKeyDown The code I hacked together will force a tab for a number of other special characters (from quick tests, almost every key combo of ALT and any other key returns 0 as well). I don't need to be too flexible (this is an in-house product only running on 1 specific model of iPad Pro) but am curious if there is a better way to approach this. --Andrew Bell ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: problem with mobileSetKeyboardType
I think that code is based off a documentation bug because "alphabet" is not a listed parameter in the dictionary (even though it is the first example shown after the listed parameters). I use: The mobile keyboard won't activate unless a field has focus and the "default" keyboard is already the alphabetic keyboard. What do you mean by it's not working? What keyboard are you trying to see vs what you are seeing? --Andrew Bell 1. problem with mobileSetKeyboardType (Mike for GDC) From: "Mike for GDC" To: Subject: problem with mobileSetKeyboardType Message-ID: <007201d472f5$d61fcfb0$825f6f10$@golddogcoffee.com> Content-Type: text/plain; charset="us-ascii" I have not been able to get the "mobileSetKeyboardType" command to work on my android. I have tried various options, such as: on openField if the environment is "mobile" then mobileSetKeyboardType "alphabet" end if end openField and on mouseUp if the environment is "mobile" then mobileSetKeyboardType "alphabet" end if end mouseUp Neither work. All I get is the standard keyboard from the android. Any suggestions? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: Browser Widget Problem in Android
Mike- Attachments don't make their way onto the list, so we can't see your settings. You said a "map browser widget" but that doesn't exist in LiveCode: Map widget does, and Browser widget does, but no Map Browser widget. I think you're talking about the Browser widget based off the thread title and mention of URL. The following inclusions will likely be required for your implementation: Browser [globe icon, not puzzle piece] (to include the Browser widget) Internet [dog-eared paper icon] (to include libURL libraries which allow the app to connect to the outside world) SSL & Encryption [puzzle piece icon] (to handle HTTPS prefixes) Does the addition of these, or changing the Inclusions setting under the General tab of Standalone Application Settings to "Search for required inclusions when saving the standalone application", make a difference for your app? --Andrew Bell Subject: Browser Widget Problem in Android Message-ID: <005601d4844f$ba732c60$2f598520$@golddogcoffee.com> Content-Type: text/plain; charset="us-ascii" I have put a map browser widget in my app. When I load the URL and try to display it in my android, I just get a blank screen. Attached are my standalone settings. The app works on my desktop but NOT on the Android. The browser URL is set correctly, it just does not display. Any suggestions as to what might be wrong? ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: remove empty lines in DG
From: Bob Sneidar To: How to use LiveCode Subject: Re: remove empty lines in DG Fortunately for you, I have a cursorToArray function already written:-) YOU wrote that? Thank you thank you thank you! When I discovered that script it completely changed my workflow by allowing me the ability to create more robust dataGrids since I could change the database schema around without messing up all my tabs! --Andrew Bell ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Bug regression
I found a bug that was squashed in 8.1.0dp3 has re-appeared. What's the proper way to report this? I found the original thread (marked FIXED) and made a comment, but not sure that anyone revisits those. http://quality.livecode.com/show_bug.cgi?id=17852 --Andrew Bell ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: sms,MMS, and Push Notificstions
I recently tackled push notifications for a client project that was WAY more in-depth than I imagined (and initially quoted for). Using the LC tutorials for push notifications with APNsAssistant and AnroidGCM I was able to add push notification sending from a standalone desktop app created entirely in LC to a mobile app also created entirely in LC. The most difficult element was collecting and maintaining all the unique push IDs from end users of the mobile app that is being communicated to. I have the mobile app "phone home" with that push id (pushNotificationReceived) and add an entry in a remote database on a LC server by way of the super-helpful API provided by HostM. The desktop app queries the database for unique IDs of users and looks at the length of the push ID to determine if it is iOS or Google (couldn't find definitive documentation on the format of these IDs, but iOS has < and > symbols and is considerably shorter than Android IDs) then references the appropriate code base to format and send the message (iOS has a header and payload, Android has a header and sub-header and playload). This is a shotgun approach that inevitably attempts to send more notifications than there are actual users because I have discovered that these IDs seem to change over time (not sure when or why). I see this as a no harm/no foul approach because each device can only have 1 unique ID per app, so some of the messages get transmitted but never received. Android returns an error message in the JSON for each attempt flagging it as successful or not, iOS does not. I was able to get Unicode emoji support in the messages, but have a real half-ass method of entering them right now that I intend to update at some point. Currently I have a browser widget that loads a third-party webpage of emojis (emojipedia.org) that needs to be copied and pasted into a text field... but the website uses a copy button to truly copy that doesn't work in my standalone so I have instructed my end-user to select the emoji from that browser widget and right-click/ctrl-click to copy to the clipboard and paste into the field. --Andrew Bell Mike: Hmm? I downloaded APNsAssistant, which is linked to the lesson. Is this the one that you modified and re-posted to gitHub? A quick perusal of that stack, it looks like he uses a shell command to simulate the sending of an alert. Is that how a notification is intended to be sent, or is this method only for testing? If a notification could be initiated from the app, it would eliminate the need for a server, except to store the receiver information/tokens/whatever is needed. That would be preferable. But ?? So, sorry for seeming dense, but I?m confused over the role of the ?server?. Whether a service like onesignal is required to distribute push notifications, or whether the initiator app can just get the info from some database and send the notifications from the app directly without activating some network server api that does the sending. Best, Bill P ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Text (uni)coding issue
I have a database on a LiveCode server that I use to track user interactions in a LiveCode app. It has gotten too big to query in LiveCode without timeout errors (the JSON gets mangled because there are now several thousand records), so I'm trying to generate a text file on the server and download that instead. I can get the text file to generate on the server, but when I try to download it to my LiveCode app (to eventually save on the end-users computer) the text is in some weird format. I assumed this was some wierd unicode issue and tried to textDecode it, but can't seem to figure out what format it actually is so that just gives me text in a different weird format ("UTF-8", "UTF-16", and "MacRoman" don't seem to work). My code on the LiveCode Server seems straight forward: put "SELECT * FROM promosRedeemed" into tSql put revDataFromQuery(TAB, "|", sDbId, tSql) into tRedemptions set linedelimiter to "|" set itemdelimiter to tab replace RETURN with " -=- " in tRedemptions // ACCOUNTS FOR LINE BREAKS IN DATA replace "|" with RETURN in tRedemptions put "redemption-log_" & the seconds & ".txt" into tFileName open file specialFolderPath("home") & "/public_html/server/apps/iot/logs/" & tFileName for write write tRedemptions to file specialFolderPath("home") & "/public_html/server/apps/iot/logs/" & tFileName close file specialFolderPath("home") & "/public_html/server/apps/iot/logs/" & tFileName The first line of the text file when viewed in a web browser or text file downloaded directly (outside of LC) is plain text and looks as expected: 294 Wednesday, July 13, 2016 8:36 15 3 MacOS 10.11.5 -=- MacBookPro11,3 -=- 0,0,1920,1200 -=- 39.892219,-85.974632 But when I fetch that URL in LiveCode using... put url (tURLtoDownload) into tFullRedemptionList put tFullRedemptionList into url ("binfile:Full-IOT_TSM_RedemptionList.xls") ...the first line (and all other lines basically) looks like this: ã ‰Ω◊rÎ:∂(˙Ï˝