How to make iPad ask receipt printer printout without framework? - ios

now i got one receipt printer model xp900 (from XPrinter china). Anyone hear about this receipt printer ? Is it printable through iOS device without any framework ? i have success print out through (Star, Asterix) receipt printer. But only this 1, i cannot find any solution. Anyone can help on this ?

Related

SMS/iMessage auto-responder on iOS

I was wondering if there were any way to, on an iPhone (will root/jailbreak if necessary), detect when you I receive an SMS message from a person and automatically then respond. I will not need to post this on the app store so anything violating that is not an issue.
Personally I am more familiar with android and that is why I am asking for your help.
Autoresponder 3 should do the trick for you.

Opening app from sms and getting the sms contents in iOS

I am trying to build an iOS application. The basic premise is that the user receives an SMS which has a message, a link to the application, and other details. For example, the message might look like this:
Good morning! Kindly open the application: mylink://here
Additional Info: 123123
Additional Info: 321321
I know that if the user has installed my application, he or she will be able to click the mylink://here and it will open my application. Answers in this question discuss said topic thoroughly. My concern mainly has something thing to do with fetching the additional information from the text message. My application will need the additional informations in the SMS and is there a way to fetch the additional information without having to programmatically go through them in my application?
Since the application is opened via SMS, is there a provision in iOS that provides your application, if opened by an SMS, with the raw SMS text?
I'm a bit new in iOS development and I'm mostly relying on what I am able to research online. As much as possible I do not want to fetch the SMSs (if iOS even allows that), find the one I'm looking for, then parse from there.
Well you can't read or send sms messages... At all. That's a big no-no in standard iOS. However, you could pass some simplified info via url scheme. It could look something like this:
myappscheme://www.someurl.com?flag=true&myotherinfo=hi
You'll want to read more about it here: https://developer.apple.com/library/ios/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/Inter-AppCommunication/Inter-AppCommunication.html
Sorry from Apple side but can't access these on a standard, non-jailbroken iPhone. You should file a bug with Apple, perhaps they'll improve SMS access in the future.
Not possible
Check this https://developer.apple.com/library/ios/documentation/MessageUI/Reference/MFMessageComposeViewController_class/index.html
For SMS sending through application allowed but for accessing inbox for sms/email not allowed.
It is only possible when the phone is Jailbreaked. There are many tools to jailbreak your phone.
Once Jailbreaked, an application cal open the SQLite database at
/var/mobile/Library/SMS/sms.db and read the message table.
It contains, the date/time at which the message was received, the sender/recipient phone number and even the clear text of the message.
Refer this Question to read content of sms: Read SMS message in iOS

Reading Apple Watch syslog (NSLog()) in real-time

I'm looking for a way to read the watch's syslog in real-time, similar to the way Device Console or this do it for the iPhone.
It's ok if the phone will be plugged by usb to the computer at the time I'm reading.
At this point I'll even settle for a solution that somehow reads the texts at real-time from Xcode debug console, really (though I will prefer a way to hook in to the watch's syslog in a standard fashion :)..
Thanks!
While I couldn't find any official way to get logs from the device, I did manage to write a hack that does so in real time.
It uses a python GUI automation library to pull the text from the Xcode console window.
Please notice this solution does have it's limitations, as it:
requires the phone to be connected to the computer via cable
only contains the logs from your own app, thus it falls short of the tools mentioned earlier.
However, it did solve my problem and I'm publishing the short python code in the hopes that it will help other developers.
import atomac
def get_console():
xcode = atomac.getAppRefByBundleId('com.apple.dt.Xcode')
return xcode.windows()[0].groups()[0].textAreasR()[1]
def run():
console = get_console()
while True:
clog = console.AXValue[-1000:]
last_read = clog.split("\n")[-2]
print last_read
if __name__ == "__main__":
run()
Notice you may have to play with some of the indexes inside get_console() to get the console window in your Xcode setup.
(If you're interested, this hack code was written for a hackathon project, as a way to get fast data from the watch since it couldn't send any UDP packets on WatchOS2 Beta 4 and the official ways of sending data from the watch [such as sendMessageData:replyHandler:errorHandler:] were too slow for what we needed).
I know this is an old thread, but for anyone who lands on this search, there is way to do this: https://forums.developer.apple.com/thread/94693.
To summarize, load a diagnostic profile onto the watch, (link in the forum post,) then you can use MacOS system console to see the watch messages. Right now I'm having a strange issue where some of the messages I NSLog() appear and others don't, but you can see the watch messages in real time.

Have one device communicate to another with the same app

Im pretty new to iOS development, so I don't really have an idea of where to start with my question. Im wondering how I might go about sending a message to another device with the same application installed? Basically Im looking to have the application send a message from Device 1 (the device requesting information) to Device 2, (the device that has the information that Device 1 needs) and have Device 2 respond with the correct information.
A more "real" example... The user of Device 1 wants to know the "favorite number" value that the user of Device 2 has saved in the app. I am looking to send some sort of request for Device 2's favorite number, and have Device 2 be able to send it back to Device 1.
Im not sure how this would be completed. Any information that you gan provide - instructions, examples, etc. - would be GREATLY appreciated.
It will have a lots of solution:
you can Create a web serice, to finfish the message sending job.
or you can try Parse , and Pusher is also greate!
PS:solution 2 also need some server programming, and pusher is way more easier.

Can you get Identifying information about the receiving iOS device in an AirDrop transfer?

Can you get Identifying information about the receiving iOS device in an AirDrop transfer? UDID, Owner's name, the info that shows up in the screen when you proceed to send the data, something? I want to keep a log.
No, this is currently not possible. You should file an enhancement request with Apple explaining why they should add this.

Resources