I'm new to the Apple development ecosystem. I thought I'd start with writing CLI apps in Swift (and work my way towards OS X and iOS).
Although there is no GUI involved, I want to display notifications using the native notifications API. Is this possible with CLI apps written in Swift? Are there examples?
You need a proper Cocoa app bundle to display notifications in the app. However, you can use AppleScript to accomplish this:
display notification "foo"
So with Swift, you can use NSTask:
NSTask.launchedTaskWithLaunchPath("/usr/bin/osascript", arguments: ["-e", "display notification \"Hello\""])
Related
Can iOS apps speak with a builtin library in iOS? Kinda like typing anything on the terminal of a Mac with the "say" command?
i'm planning on building an app with local directions to a place and i want my app itself to navigate the user. Can i make an app that can speak with something more builtin?
Yes, you can use your app (even when is on the background) for location and navigation purposes, and of course you can play sounds to give them directions.
Check this:
http://developer.apple.com/library/ios/#documentation/iphone/conceptual/iphoneosprogrammingguide/ManagingYourApplicationsFlow/ManagingYourApplicationsFlow.html
http://developer.apple.com/library/ios/#documentation/UserExperience/Conceptual/LocationAwarenessPG/Introduction/Introduction.html
http://developer.apple.com/library/ios/#documentation/Audio/Conceptual/AudioSessionProgrammingGuide/Cookbook/Cookbook.html
I'm using MobiOne to build an App (I don't have a Mac or know Obj-C), but I'm wondering how to compile the App into Obj-C. Has anyone tried this? I have my design done and tested in the emulator, but do not see how to build the code.
My understanding is that MobiOne is not designed to be uploaded to Apple's app store. You can use Phone Gap to help get your app into a native environment since MobiOne uses web technologies. Phone Gap should allow you to publish to the app store, but the app is still subject to Apple's quality control system.
EDIT: You will still need a mac to publish the app. Or you can just use the app as a website on your device(s).
You can build the app with the Mobione built-in compiler. Go to the "Project" menu and click "Build iOS app" and your app will be compiled. You cannot compile with Obj-C.
Compile it into an iOS native app using Mobione on Windows. Upload it to the App Store using Apple's Application Uploader on a Mac. Easy.
According to Apple, you are not supposed to make iPhone apps without a mac. Also learning objective c MIGHT just be a good first start before making an app.
The first comment in your question provides a link, and one of the first paragraphs in that link states this:
"The traditional approach to iOS application development requires developers to create their apps using Appleās Objective-C programming tools and Macintosh(tm) hardware. MobiOne runs on your Windows OS (Win7 to XP) hardware and offers developers an alternative cross-platform programming model based on HTML5 open web standards and virtual device services, e.g., contacts, camera, audio... "
Of course this allows you to do it, but that doesn't mean that the appstore will accept your app if you try and submit it through MobiOne. I'm not too sure on the subject, but I would do some research and figure out if apple allows you to do this.
Is there any VOIP app for iPhone/iPad that can accept call request from another custom iPhone application?
I have a custom iPhone application written with C# and MonoTouch. I need to make VOIP calls (and conference call with multiple phones) from my iphone application. But developing a VOIP app from ground up is not worth the time (and I dont know Obective-C either). So I was looking for an SDK or App that can accept call request from other apps. For example my app could construct and call a URL like (app-protocol:call?18002221111&18003331112&18001322244)... an installed VOIP in iPhone will listen to the protocol and place conference call to all three numbers. (Something like this is possible with skype but skype does not support conferencing in IOS... although works fine in Mac or Windows).
Thanks
Thanks for your answer Paul. Do you know if gvconnect url scheme will support bulk call (multiple numbers at the same time? For single number I can have skype installed (Free), I tested the skype: url scheme and that works fine. The problem is it does not work with semicolon delimited phone numbers in iOS ... which works fine in skype for Windows Desktop version.
I think GV Connect - Google Voice Connect can do this for you. It supports gvconnect:// url handler scheme. You can find a list of apps which use custom URL handlers here http://handleopenurl.com
I haven't tested this one but it could be also helpful:
Siphon, an open source iPhone app.
I need to create a push notification webservice for Android & iPhone, but I actually own an Iphone only, I'd like to be able to test on my machine the push notification.
I don't know anything to mobile device or development.
In order to push messages to Android using the Google Cloud to Device messaging (C2DM) requires an application on the device which has registered to the C2DM servers to receive push notifications. AFAIK, you cannot do a generic push (using C2DM) which will be received by all applications.
For more info on C2DM you can look at the documentation here and a good article can be found here.
You could download the Android SDK. It gives you the basic stuff you need to get up and running.
If you want a virtual machine, you can set one up using this guide. I set this up and it was pretty painless. I don't know how current it is, but it will at least get you something to work with.
Im looking into writing a fairly simple iPhone app and need some advice on the choice of platform. I have the following constraints:
App Requirements:
The app should be able to receive strings via a wifi network, process these and then display either a message, or show a preset photo from the library, or change the background color (or any combination of these).
Once started the app will be running continuously on the device, and be a display only client (ie no user interaction on the device itself) - just processing instructions as received over wifi.
Speed: once the strings are sent to the device, the app has to respond quickly (either display image, change color or show preset text as soon as possible.)
My Current Situation:
No previous iOS development experience.
I need to do this within the next 2 months.
I am very comfortable with: HTML, JS, CSS, Python & PHP.
I am familiar with other languages e.g. C++ but have not touched these in a long while.
Question: Choice of Platform:
I know that the best choice would be to use the native iPhone SDK, but given my time constraints and knowledge of existing tech, could tools such as Appcelerator Titanium or PhoneGap be proficient for this kind of application?
Note: At this stage I do not foresee the app being listed on the app store, its meant for personal use only, although this may change in the future.
If it would be an option to load the images from a remote server instead of the local photo library and you being already familiar with HTML/JS/CSS/PHP, why not just make an Web-App that is running full-screen?
You can use your existing knowledge and you're saving money (no $99 license fee)
You might want to try TapLynx - it's possible to create a native app without any code.
I think you can do everything you want to do with Titanium. It even supports Sockets should you need to go to that raw of a level. Native iOS development is painful and hideous.
Appcelerator is glorious and fun :]