Titanium - Couldn't find module localStrings - appcelerator

Out of the bloom, when I try to run my app (device and simulator) I get the red screen saying:
Couldn't find module: localStrings for architecture: x86_64
I tried cleaning the project. Restarting the machine... still the same.
Any ideas?
Edit:
Found out this happens when I'm using LiveView. If I run without LiveView the app loads. But until now I've always run with LiveView since it makes dev faster.
Edit II
I've tried updating to latest node version - doesn't help. I've debugged liveview.js plugin in the Studio directory - the url is 127.0.0.1 - I think it's fine, all-tough where does localhost refers to in emulator - to mac host or the emulator device itself?

Found the problem - a new bug
I recently asked a question about Facebook login not working on my phone (Titanium - Facebook login doesn't show on device). I found that I have miss-configured NSAppTransportSecurity in tiapp.xml and fixed it.
After doing some debugging the the current issue I have found the following:
Transport security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file.
After quick search I have remembered that I have fixed my Facebook login option. After removing that code from tiapp.xml app is back working with LiveView.
You can find more information about NSAppTransportSecurity here: Transport security has blocked a cleartext HTTP
The current workaround that works for me is adding this to NSAppTransportSecurity section of tiapp.xml
NOTE: this workaround is NOT safe and you would probably want to remove it from production apps):
<key>NSAllowsArbitraryLoads</key>
<true/>

Related

PWA development in localhost

Currently, I am trying to make my website support PWA. After implementing it, it works on the browser from the desktop where the button to install it is available on the address bar, but when I tested it on my mobile locally, somehow it won't prompt the "Add to home screen" popup.
Could the reason be that I run it locally, as it only uses the HTTP protocol? Or I missed something in order to set up for that popup specifically? My website is on Laravel 7.
Hope anyone could help enlighten me with this issue.
Thank you.
UPDATE: Solved it. Apparently by running the website locally with exposed public port using ngrok with HTTPS protocol, I am able to simulate how the app will behave on the mobile and the "Add to home screen" popup finally appeared.
PWAs by definition need HTTPS connections to be installed and run properly (as you said). On your development machine you are making use of the exception for "localhost". On your mobile device, you are not accessing the site locally as it is not hosted on the device itself.

IT Hit WebDav protocol installer fails with Firefox

I am using the latest version of Firefox (57.0.4) to test my IT Hit WebDav server implementation. When I attempt to open a file other than MS Office I expect to be prompted to install the protocol installer. Rather than being prompted I get a dialog that says I need to install something from the Windows App Store. I see the same behavior with Edge.
Both Chrome and IE are behaving as expected. It appears to be supported by Firefox.
I also tested using the Ajax browser on Firefox and it fails as well.
Thanks!
The issue with Firefox is fixed in the IT Hit WebDAV Ajax Library v5.
You can find a detailed answer about why the protocol app is not detected and the callback is called here.

Bot Framework Emulator gives error as "Couldn't Send"

I have created my first bot application, but it's giving an error while running in the Bot Framework Emulator. it shows status of message I sent like "Couldn't send". Please suggest me what could be the reason.
I had to launch the emulator with Run as Admin
The url of your bot in the emulator is wrong. It should be http://localhost:3979/api/messages
For those trying to run the mac version of release 4.2.1, download the .zip file.
The .dmg version is not working for some reason.
I also had the same result, running V4 PREVIEW 40025 of the emulator.
The log window was blank, and I saw "couldn't send" (no retry)
I downloaded 3.5.6 and ran it, Windows asked to confirm it was allowed to communciate through the firewall, said yes
Pointed the older emulator at the endpoint (my sample was running on http://localhost:3979/api/messages - web page visible in Edge at the root of this url so I knew that part was ok) and it loaded, did version checks etc, (so log window not blank)
Every message still says "couldn't send" but now says "retry". Putting a breakpoint on the first line of
public async Task<HttpResponseMessage> Post([FromBody]Activity activity, CancellationToken cancellationToken)
{
Shows the request was being sent to the bot, but it only gets to
if(Middleware.RejectMessageBasedOnTenant(activity, activity.GetTenantId())
Before saying "couldn't send" - I haven't followed the instructions ("Set the OFFICE_365_TENANT_FILTER key in web.config file with Tenant Information") yet, but wanted to post this to give a set of steps you can try taking..
Oh, and the V4 emulator also now works as expected/as above..
Check your firewall, restart the web site and the emulator.. Check that the emulator succeeds in comms with the web server, and that you see "Hello I'm your new bot" in the chat window of the emulator
To help those who had the URL right, but still got the "Couldn't send" message.
I was running version 4.0.15 of the emulator and I was getting no response back whatsoever.
Eventually I found that installing an older version of the emulator, (3.5.2) worked for me - if at first it doesn't work, just check that the port is correct as it defaults to port 3978.
Hope this helps!
I had this issue for the emulator V4.2.1. Just we need to allow the app in the firewall and it will work fine. (Provided if you have the url correct and then you are facing the 'couldn't sent' issue.
Check this link. : https://pureinfotech.com/allow-apps-firewall-windows-10/
I had a similar issue - but no logs were showing in the window.
I tried un-installing the Bot Framework Emulator, then re-installed and everything just worked. 🤷‍♂️

bluemix node-red debug not working

I'm working with a node-red application inside Bluemix. It worked well but now the debug sidebar did not show no message.
The application log traces correctly the messages incoming from the IoT device.
I tried to deploy again, to change browser, nothing changed: the debug sidebar is always empty.
What to do to have again messages showed?
Thanks
I had the same issue. Simple Timestamp injection plugged to a debug output and for some reason nothing was shown on the debug side panel.
The solution in my case was simply to set no proxy for the application address in the web browser. After that debugging came through
In my case the problem was a different version of NodeRed was installed on the server, all I had to do is clear Chrome cache.
In my case, I simply didn't have the debug tab selected. I thought I did. You have to click on the little bug icon. I was getting the messages all along, just didn't have the correct display.

Not able to debug phonegap app running on windows 8 mobile

I have a phonegap application that has some layout problems. I can run the app in browser for the most part, and this usually get me over the line. But with a new design I need to debug the application layout on windows phone 8.
I'm currently looking at weinre but its not showing anything on the desktop when browsing the local server, I have added the link to my application I have cleaned up everything I can think of. Still blank. Any good tuts around the ones I have read just copy and paste the original docs or are not on my same error.
There's a public weinre server available here:
https://the-weinre.herokuapp.com/
You may have better luck with that than with your local server. There's a demo available on that page, give that a try and see if it works on your windows 8 mobile device.

Resources