I have a main application. Now I need to add upload capability. I thought of using a helper app which runs in dock so that even if the main app is closed it continues to upload. Now my problem is that I need to feed the file paths to the helper app so that it can start uploading.
How can I send message to the helper app from the main app ?
You could use Unix Domain Sockets, or perhaps Distributed Notifications, if you want a Cocoa specific framework.
Related
Hello guys i'm using xamarin forms
i have a class LocalNotif wish content notification calls
on IOS devices i manage to fetch the device even when the app is destroyed but in Android i don't know how
can any one help please.
Thank you
In order to keep the app running in the background you need to create a service.
A service runs in the background (even after closing the app) and provides info for the application, for example when playing a song in Spotify and it keeps playing even after closing the app, notification from Facebook, etc.
I don't think that it's possible to not enter OnDestroy(), but you can read further about services here.
I have two WinRT Apps. I want to open second WinRT app from first app and get the data from second app to first app. Is it possible or not?
Yes, you can, here is how to do it:
In both app (let's call them app_A and app_B), you define the active protocol for them. So app_A will handle app_A:// protocol and app_B will handle app_B:// protocol.
In app_A, you press a button (for the sake of this sample), launch url: app_B://{your query here}.
app_B will handle your query, prepare returning data, and launch url app_A://{returning data here}.
No, you can't, but with the new APIs on Windows 10 we can more 'communicate' between apps.
OK Planing to Build small twitter App with Kendo UI . just wondering if that mean part of the app will be hosted in my server in order to get that work ?
I don't want host any part of the app at the server . i want this App to work directly Forward and backward from the app at user Device to twitter API
Please don't tell me it's just script will be hosted and the App that going to be created with Phonegap or whatever is just a Browser . Please don't tell me that
I am not sure I understand your question right but you can create a JavaScript only (no-server side code required) twitter client. You can embed all required JavaScript files and deploy them using PhoneGap.
I'd like to create a Cocoa app that is able to grab selected text from a website in a third-party browser (in other words, NOT from an embedded webkit instance running within my own app) and then store it in my app's database. From what I can tell, I need to user some kind of service for this, like how selected text in Textedit can be turned into a new sticky note via a service. However, I'd like to be able to provide this app through the App Store. Does that mean I need to use XPC services?
That's as far as I have gotten. So if I do need to use XPC services, can someone point me in a helpful direction? The Services Implementation Guide is totally over my head.
WP7 newbie here..
In my application, I am using embedded web browser control to load an external web page.
I have a PIN based validation step in that application, which involves
1) User Leaving the current application, (which has a external web page loaded in the embedded web browser) to launch the SMS Inbox.
2) User reads the SMS he just received, which has the PIN. I am sending this SMS to the user.
3) The User then needs to resume back to the original application by hitting back button, to enter the PIN which he received in the SMS earlier.
Once user enters Step2, my application will go into background, and subsequently will get tombstoned. Once user enter Step3, I want to restore application state (with the embedded web browser control), without making a fresh HTTP request again to load the web page.
So, with the given scenario in my mind, I have following two questions -
1) Is there a better way to do all this, like not having to exit the original application, and still let user read the SMS. ( i.e any api to read sms ?)
2) Is there a way to serialize the browser state/save entire web page (with images, css, js) , such that entire web page can be rendered exactly the way it was, when user left the running application.
Important points:
1) I can only use SMS as a communication channel. I can not use something like raw push notification channel, which could let me show PIN to the user, without exiting the application.
2) I am targeting Windows phone 7.0 runtime, but if there is a better option available in Windows Mango update, please do tell me.
Any sort of help is greatly appreciated.
Update:
Added link to the embedded web browser component.
1) There is no API that would let you access the contents of the Messaging hub from inside your application. This is set up for privacy purposes.
2) By default, the web browser saves its state. So if you navigate away from your app, and then come back - the same web page will still be there unless you explicitly re-navigate on activation
1) The better way to do this would be to not embed the web page within an app. Just build a mobile website. If all the functionality is within the web page you gain nothing but problems by trying to put it inside an app.
The web browser control is not intended to be used to create an alternative browser (which is really what you're doing).
2) You can try using the SaveToString() method to store the state of the page when tombstoned but this doesn't allow for modifications to the page since it was loaded (including anything dynamically updated or any state in javascript). If you have multiple pages you'll also need to maintain the internal backstack and the state of each page separately.
Short answer: If you want to put your application logic in a webBrowser control then you can't support tombstoning. Fast-App-Switching (in Mango) partially addresses this but not completely.