Retrieve crash report programmatically on macOS - c++

I am implementing my own C/C++ app using the Qt framework.
I want to retrieve the last crash log of my app at the time it crashes and send it to my API.
Is there a Apple native or terminal way to retrieve the log or do I have to retrieve it the hard way?
Thank you in advance.

Yes, but only if you publish your software via App Store. Crash reports are then gathered by the OS and can be retrieved on the App-Store-developer site. The user has the last say in whether the reports are delivered to Apple/you however.

Related

Auto Deauthorize from a system by RingCentral

I have RingCentral Desktop app installed on my system which I need to Deauthorize from my system.
If I uninstall the application, will it automatically Deauthorize it from the system?
If not, what is the manual process in doing so? Also if there an API available for the process to Deauthorize the application which I can use?
I tried searching and finding the answers, I couldn't get the answers
No there is no automated way of De-authorizing the application from the system.
All you need to do manually by going into application's Setting --> Phone and number section.
Here is full way of doing :
https://support.ringcentral.com/s/article/4219?language=en_US
Also there is no RingCentral API available currently for the process

download and run exe from chrome browser using c++ plugin

I have a webpage where when I click a button, it should download an exe from a url and the exe should get automatically invoked without user intervention.
In Internet Explorer I achieved this through activex control ( .ocx ) deployed as a .cab file.
I am planning to extend this to chrome and firefox platform too. ( atleast chrome for the first step ).
I don't want to use Java applet ( need to remove java dependency ). I know I could achieve this through Firebreath plugin but clearly this is not a good time to dive into NPAPI plugin ( since NPAPI is already being fading out. Chrome has begun phasing out NPAPI ).
When I looked into alternative Plugin technologies to NPAPI, I stumbled upon Google Native Client. On further reading I got to know Nacl too won't fit my needs since os calls api will not work in nacl ( I hope URLDownloadToFile api or createprocess or shellexecute wouldn't work. Correct me if I am wrong ).
Should I go for Native Messaging? Is there anyother alternative technology am missing ? Guide me Please .
NPAPI until it goes away will let you do what you want; other than that Native Messaging is the only option.
As others have mentioned, this is a Really Bad Idea(tm).
Thanks all the people . I finally settled with Launch Application Using Custom Protocol Handler . http://msdn.microsoft.com/en-us/library/ie/aa767914(v=vs.85).aspx . This fitted my needs .
As suggested above, Chrome's native messaging appears to be the way to go - on Chrome.
First, have a look here: This blog entry shows that native messaging can be used to launch "calc.exe". I've yet to try it myself - but it looks promising:
https://plus.google.com/+FrancoisBeaufort/posts/jdTrmmZL9Xh
One thing to keep in mind is that the Native Messaging technique will only work from a Chrome Extension, which opens up an entire set of related questions.
(1) Can Chrome extensions be installed for all users using group policy? or via the registry?
-Yes, according to http://www.chromium.org/administrators/pre-installed-extensions
Later edit: only "published" extensions can be added via the registry. see - https://developer.chrome.com/extensions/external_extensions
(2) Can you detect whether an extension is already installed?
-Yes, Chrome Extension: How to detect if an extension is installed using Content Scripts
So maybe its possible to have a two-phase process:
-Your users will head to the web page, which will test for the extension (using #1 above)
-If its not there, have the users download and install the .exe (this will require interaction).
-The .exe will deploy the extension files and register it for Chrome (using #2 above)
-On subsequent visits, the already-installed extension can be used to launch/communicate with the now-already-installed .exe (using Native Messaging)

Is it possible to build offline app with Appcelerator and Rhomobile?

I have recently found those two look-alike solutions/IDE for cross-mobile development: Appcelerator and Rhomobile (I know there are more) and I have questions regarding those two platform:
1) I believe the only way to build the view is using HTML, which I like alot the ideas. But, does that mean the application itself isn't available if the mobile is offline?
2) Do you guys know if it's possible to publish the application to the App Store and Google Store?
3) Are there any simulator for different mobile and do they support all those slide/tab events?
4) And finally, are there a way to transfert the App on your mobile phone without having to publish it anywhere.
Please note that I have no knowledge at all about mobile app dev and those two solutions (Appcelerator, Rhomobile) would be perfect for me as I am familiar with Javascript and HTML.
Thank you!
Ok I have only used appcelerator but:
1) a webview is like a browser without the address bar, it simply parses HTML, where it gets it from is up to you. If you write the HTML and pass in a file well then yes it can be offline, if it is used to parse a response from a webpage well then no as it needs to send a http request to the webpage.
As many people seem to mistake (for a reason unknown to me as all the documentation states other wise), appcelerator is not the same as phonegap, appcelerator uses its own javascript based API to allow developers to make native apps, it is NOT a webview wrapper. It is offline by default and allows you to send http requests if you need something online.
2) yes you can publish to the app store and the google store from appcelerator, the documentation walks you through the process.
3) Appcelerator requires you to download either the IOS sdk or Android SDK which come with simulators, appcelerator / the emulators support the standard events found on these devices.
4) With Android to can build a .apk file and distribute however you wish, with IOS the only way is to publish to the app store. the only other way is to make a mobile website instead of an application

How to integrate twitter with c++ application?

I have a C++ application that uses curl to go to log in to a website, get information, and then parse the information. Now I want to send myself an alert to my phone via sms or e-mail or I can I also send the alert to twitter and then get a notification that way.
My environment is windows vista and I use MSVS 8.
I just need something easy that i can throw together quick to notify myself when something on the webpage changes.
If there's anything that will work with curl (POST/GET), even better because I am already familiar with that.
thanks!
Twitcurl provides a Twitter API on top of cURL.

Is there any API to add ads to my desktop app

I am looking for a way to embed ads to my desktop APIs. There are planty solutions out there for web sites which stream ads from Ad Networks. However, I didn't find one which will allow to get a similar ad content to the app.
Does any one have any experience with this?
Thanks!!
Which operating system are you targeting? If you are on Windows you could always display the ads within an embedded/automated IE window (assuming IE is installed). Alternatively, you could hook up to something like shareasale.com datafeeds and embed the appropriate links in your app. Clicking on the link (or description, image, etc) would merely cause a browser to launch at the appropriate site.
I have had the same pro, I found it was hard to find an ad network focus on desktop apps. Several months ago one of my developer friend told me he is using DesktopAd's ads in his Windows desktop apps. I downloaded their ads SDK and added into my Windows 8.1 apps, it only took me half a day finishing all the works. After that I can get revenue from ad clicks everyday. I hope my answer could be of some help to you.