Actions on Google Simulator fail to refresh - actions-on-google

I've built an action using Action Builder in 2 languages, it and en. Opening the simulator I've got the message: Scenes in locale en differ from scene in locale it. Opening the console I have a generic error with errorCode 3. Someone had the same problem?

Related

selectChannel command is not working on the Google Assistant

I'm trying to add a select channel trait.
what I did was that I followed the docs,
1- Add the ATTRIBUTES to the device I want to apply this feature on, for example, a TV device type
2- I guess we are all done as every other command works with my code
What I actually did was the following to the device database in Firestore
then added the
case "action.devices.commands.selectChannel":
in the
switch (execution.command) {}
code
then reloaded the device from the google home app
then when I try to call
"Change to ABC on my TV"
it says
'Sorry, I don't understand.'
and nothing appears on the logs
otherwise, everything is working perfectly,i.e setting the volume and On/Off.
what am I doing wrong, please?
UPDATE:
Today I tried command "action.devices.commands.returnChannel" and "action.devices.commands.relativeChannel" and they are working fine
and all three commands belongs to the same trait!
I've seen a lot of users complaining about this command on many sites
like the following 1,2,
could this be related,
I'm still in debug mode, would it be fixed when I publish my app
UPDATE #2
I tried it today with an android phone and it works fine with selectChannel command,
previously I was testing with an iPhone with google home and google assistant apps on their latest release, and the selectChannel is the only command that didn't work there.
Hope it's just related to the debugging mode
It is usually unexpected to have a trait / feature working on the Google Home App on Android but not on the iOS version, as their functionality is nearly identical. The accuracy on the speech to text conversion on both platforms might be different, which could be affecting the functionality. You can try out typing your request to see if that helps in any way.

Cannot launch without an active device

I am developing a flutter app via vs code, I closed vs code and opened it again and now when i run my code no device is showing to connect.
just like that,
it keeps searching and searching without finding any device.
and the end it shows a box telling "Cannot launch without an active device"
any idea??
please I need to solve this problem a soon as possible.

not able to see the log statements in ddms

I am trying to install my worklight application on the android htc mobile. The application was getting installed successfully but the problem is I am not able to see the log messages.As soon as I connect my device it is giving me the following errors:
1) "couldn't find the mandatory host http header"
2)"addition of standard header pragma is discouraged as a future version of the RESTlet API will directly support it"
Can anyone please help me in solving this issue?
Thanks in advance
The question's description text is not very helpful... can you please elaborate?
What is "htc mobile", is there a specific device model and Android OS version?
What do you mean by "log messages"? Are you referring to the output in LogCat?
Can you try with a NEW - unmodified - Worklight app (with the Android environment) and see if you still get these errors?
Do you see Worklight-related logs regardless of these errors? Is the app working?
Right now this does not seem to be a Worklight-related issue.
There are some questions already in Stackoverflow that seem to touch these supposed issues. You can go over them:
Android LogCat continuously repeating a warning: "Addition of standard header .... not allowed"
Logcat continously shows messages
A common thread between them seems to be some OTHER app that is leaking. Try closing as many apps before installing the Worklight app.
In LogCat you can also create a filter to see log messages related ONLY to the app, and not to anything else that may be happening in the device (with other apps).

Is there a way to catch all exceptions and display them to user in iOS?

I'm writing an iPhone/iPad app and I'm undergoing beta testing by other employees of my company (many of whom are out of the country). My question is, is there anyway to catch all exceptions or errors for the program and display them to the user.
What I'm thinking is, someway to wrap the main method with a try catch and then, if there is any error (such as indexOutOfBounds) it would display a UIAlert to the user stating what the error is and where it occurred. That way it would be easier for my testers to tell me exactly what error they are experiencing.
If this is not possible, is there any good way for me to tell what errors testers of my program are having other than just having them tell me things such as "I pressed this button and the app crashed."
You could look into something like the TestFlight SDK or PLCrashReporter.
you can also make your testers test the application in debug run mode while connecting to xcode debugger (on device debug) there you will find most of the issues with their reasons. Other way would be the use of instruments app which is bundled with XCode and iOS SDK. it is a great way to debug the app and at last, you can use the third party libraries for reporting logs like a few suggested by #Amy.

iPhone simulator crashing on startup

Okay, so my Xcode and iPhone simulator have become really screwed up lately, all i remember doing right before this started happening is i turned off my mac. So, my first problem is that every time i open up iPhone simulator, it says the simulated application can't be run and asks to switch sdk and i click 5.0 and it keeps on saying that. I have tried reinstalling Xcode 3 times now. Second, whenever i go to open up the MainStoryboard.iphone/ipad files, Xcode freezes up and gives me the option to either crash or continue in a poor state or something like that. Next, the app I'm trying to create used to work, but then all of a sudden, it would crash at startup with this error message:
dyld: Symbol not found: ___CFObjCIsCollectable
Referenced from: /System/Library/Frameworks/Security.framework/Versions/A/Security
Expected in:/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk/Sym/Library/Frameworks/CoreFoundation.framework/CoreFoundation
in /System/Library/Frameworks/Security.framework/Versions/A/Security
2012-01-03 21:02:45.802 ibtoold[1399:d03] [MT] DVTAssertions: ASSERTION FAILURE in /SourceCache/IDEInterfaceBuilderCocoaTouch/IDEInterfaceBuilderCocoaTouch-933/IBPlugin/Utilities/IBObjectMarshalling.m:179
Details: Interface Builder encountered an error communicating with the iOS Simulator. "Interface Builder Cocoa Touch Tool" (1402) failed to launch and exited with status (null), signal 5. Please check Console.app for crash reports for "Interface Builder Cocoa Touch Tool" for further information.
Function: NSDistantObject<IBCocoaTouchToolProtocol> *IBAttachToCocoaTouchTool(IBCocoaTouchTargetRuntime *)
Thread: <NSThread: 0x40010a220>{name = (null), num = 1}
That is the error that i got when beginning to run the app, now instead, it just gives me two errors while building the app and here is what those say:
Command /Developer/usr/bin/ibtool failed with exit code 255
Verify exit code of build task 'CompileStoryboard MainStoryboard_iPhone.storyboard'
Build task failed without generating error messages.
These have to be in some way related and it has either to do with the storyboard settings or the iOS simulator, this has been a huge setback for the making of my app, if anyone has had this issue, please help
EDIT: ok have been trying to see if this same thing happens on other projects and it seems to be only that app with the errors, but IOS simulator doesn't work for anything. Also, literally every other thing i try to do on Xcode now prompts a crash, even trying to open up a project and look at errors in new window.
Update to a newer version of Xcode, they run smoother and are a lot less buggy.