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

how do you know "com.apple.wifi.linkdidchange" #22

Open
powfulhong opened this issue Jan 23, 2015 · 11 comments
Open

how do you know "com.apple.wifi.linkdidchange" #22

powfulhong opened this issue Jan 23, 2015 · 11 comments

Comments

@powfulhong
Copy link

hi, is there any "com.apple.wifi.***" that shows wifi's state? I found that after the wifi's association succeed, wifi icon would wait for seconds to show in the status bar...how do i know its truly time that everything is ready? wait for your answer...(poor english, sorry)

@davidmurray
Copy link
Owner

You mean a notification that is sent when WiFi turns on or turns off?

@powfulhong
Copy link
Author

No, just like when android wifi is associating, it has a few states that would broadcast, for example authorization.what I want to know is what notification it will send when iOS wifi is associating. Because I found when association callback returns success, the wifi icon don't appear right now,likely it is doing something.

发自我的 iPad

在 2015年1月24日,05:19,David Murray [email protected] 写道:

You mean a notification that is sent when WiFi turns on or turns off?


Reply to this email directly or view it on GitHub.

@davidmurray
Copy link
Owner

Try WiFiDeviceClientAssociateAsync with the callback argument.

@powfulhong
Copy link
Author

I did use WiFiDeviceClientAssociateAsync and the callback show wifi was associating successfully . What i confused is why it would wait a few seconds to appear at top-left. And how do you know there is a notification called "com.apple.wifi.linkdidchange"? How can i find others? Thanks.

@davidmurray
Copy link
Owner

Run the command strings on a MobileWiFi binary. You should see all the notifications.

@powfulhong
Copy link
Author

I try strings MobileWiFi | grep "com.apple", but it just return ------
com.apple.wifi.manager.available
com.apple.wifi.manager
com.apple.wifid.queue
com.apple.wifi.manager.available
com.apple.wifi.manager
com.apple.wifid.queue
com.apple.wifi.manager.available
com.apple.wifi.manager

com.apple.wifid.queue

is it right???(Though i do think so...)

@powfulhong
Copy link
Author

or can you help me find out all notifications of MobileWiFi?

@davidmurray
Copy link
Owner

Sorry, not sure how you can find the other notifications. :( Maybe check the wifid binary?

@powfulhong
Copy link
Author

can't find the other notifications.....:( i found when the association callback return success, it was actually doing something, for example, getting the ip address.
now i found another problem that even if i enter the wrong pwd, the association would return success but actually associated to a different wifi? How could it be?

@powfulhong
Copy link
Author

And how did you get *.h??? class_dump doesn't get it. I use nm MobileWiFi and find that there are a lot of 'information' that you didn't show in headers...

@davidmurray
Copy link
Owner

I'm not really sure about the other issue you're experiencing. I don't know everything about the iOS WiFi.

I didn't use class-dump, I manually reverse engineered the functions.

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

No branches or pull requests

2 participants