Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Call for ios #191

Merged
merged 4 commits into from
Apr 13, 2016
Merged

Call for ios #191

merged 4 commits into from
Apr 13, 2016

Conversation

kiok46
Copy link
Contributor

@kiok46 kiok46 commented Mar 13, 2016

Some days ago a user on IRC was asking about calling feature for ios, Here it is.
I have not tested it yet, maybe I will do it in a couple of days.

@doratoa
Copy link
Contributor

doratoa commented Mar 14, 2016

Maybe it was me! Thanks, I'll check it as soon as I get testing device.

@doratoa
Copy link
Contributor

doratoa commented Mar 26, 2016

Nope, it breaks with
'NSURL' object is not callable
on iPhone 6 and simulators (not sure if simulators do have any mock call implementation, but error is the same as on a real device). Or I'm doing something wrong since I didn't find any call documentation: if it needs some permissions like GPS or if there is a required format for number input.
Further input would be appreciated!

@doratoa
Copy link
Contributor

doratoa commented Apr 13, 2016

Ok, sorry for delay, we were busy making our app ready for AppStore.
But thanks to you, it will be rolling out with call feature! ^_~+
We use call button to let our user call service operator right from the app.
That how feature first worked with last fixes on test: (it's purely local service so it's untranslated except my notes)

# App
def calltest(self):
   try:
      plyer.call.makecall(tel='8965?????28') #  NOTE edited for privacy
   except Exception as exc:
      pass
# kv
BoxLayout:
   orientation: "vertical"
   size_hint: 1, 0.6
   spacing: "4sp"
   FixWidthButton:
       text: "КАРТА"
       on_release: app.activate_screen('scr_map')
   FixWidthButton:
       text: "ОБРАТНАЯ СВЯЗЬ"
       on_release: app.activate_screen('scr_feed')
   FixWidthButton:
       text: "Звонок ТЕСТ"
       on_release: app.calltest() #  <- this one
   FixWidthButton:
       text: "РЕГИСТРАЦИЯ"
       on_release: app.activate_screen('scr_reg')
   FixWidthButton:
      text: app.btn_account_loginout_text
      on_release: app.btn_account_loginout_action()

both screenshots are taken from same iphone 6s, regrettably I was unable to find a way to show status bar in app yet, so you can't see it on first one
ioscall_ip6s1
I was told that call is aborted when taking screencapture on iphone, so it's finished on this one (but I got the call alright, ofc)
ioscall_ip6s0

@kiok46
Copy link
Contributor Author

kiok46 commented Apr 13, 2016

@doratoa Thanks for testing and the screenshots. 👍

@akshayaurora akshayaurora merged commit 1b09fd6 into kivy:master Apr 13, 2016
@kiok46 kiok46 deleted the call_for_ios branch April 13, 2016 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants